This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Problems compiling Log4jME
- To: Tom Tromey <tromey at redhat dot com>
- Subject: Re: Problems compiling Log4jME
- From: David Vrabel <dv207 at hermes dot cam dot ac dot uk>
- Date: Thu, 27 Sep 2001 11:28:39 +0100 (BST)
- cc: <java at gcc dot gnu dot org>
On 26 Sep 2001, Tom Tromey wrote:
> >>>>> "David" == David Vrabel <dv207@hermes.cam.ac.uk> writes:
>
> David> A.java:
> David> public interface A {
> David> public void f();
> David> }
> David> B.java:
> David> public abtract class B implements A {
> David> public void g() {
> David> f();
> David> }
> David> }
>
> This compiled fine for me with both the current CVS gcj and gcj 3.0.
>
> Could you write a test which shows the failure and send it?
The above files do fail.
.java -> .class works fine (gcj -C B.java)
.java -> .o works fine (gcj -c B.java)
.class -> .o does not work (gcj -c B.class) with a message:
"B.java: In class `B':
B.java: In method `B.g()':
B.java:3: Class 'B' has no method named 'f' matching signature '()V'
B.java:0: confused by earlier errors, bailing out"
Sorry. I should have made it clear which step was failing.
Here's the Makefile I used
all: B.o A.o
B.o: B.class
gcj -c B.class
A.o: A.class
gcj -c A.class
B.class: B.java A.class
gcj -C B.java
A.class: A.java
gcj -C A.java
clean:
rm -f *.o *.class
David Vrabel