Hi all,


The following code:

--- snip ---
public class Bug {
    interface Interface {
        void foo();
    }

    static abstract class Abstract implements Interface {
        public void bug() { foo(); }
    }

    static class Impl extends Abstract {
        public void foo() {}
    }

    public static void main(String[] args) {
        new Impl().bug();
    }
}
--- snip ---

gives me the following error:

[EMAIL PROTECTED]:~/ff/fenfire$ /usr/local/kaffe/bin/kaffe -cp build Bug
java.lang.NoSuchMethodError: Bug$Abstract.foo()V
        at Bug$Abstract.bug(source file unknown:line unknown, pc 0x81ff788)
        at Bug.main(source file unknown:line unknown, pc 0x8220661)

My Kaffe version (compiled from CVS, on Debian / x86):

Engine: Just-in-time v3 Version: 1.1.x-cvs Java Version: 1.1

Apparently, Kaffe doesn't like when an abstract class calls a method from an interface the abstract class implements, if the abstract class does not implement that method itself.

Thanks,
- Benja


_______________________________________________ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to