Problems compiling Log4jME

David Vrabel dv207@hermes.cam.ac.uk
Thu Sep 27 03:28:00 GMT 2001


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



More information about the Java mailing list