[kaffe] unexpected java.lang.IllegalAccessError

Ito Kazumitsu kaz at maczuka.gcd.org
Sat Sep 13 17:16:02 PDT 2003


The attached program causes java.lang.IllegalAccessError
when run with kaffe (ChangeLog head: 2003-09-13  Dalibor Topic
<robilad at kaffe.org>).

When run with JDK or kaffe (ChangeLog head: 2003-08-27  Jim Pick
<jim at kaffe.org>), no such error occus.

bash-2.05b$ cat a/TestA.java
package a;
import b.TestB;
import b.TestC;

public class TestA {
  public static void main(String[] args) {
    TestB x = new TestB();
    TestC y = x.foo();
  }
}
bash-2.05b$ cat b/TestB.java
package b;

public class TestB extends TestBB {
}

abstract class TestBB {
    public TestC foo() {
        return new TestBBTestC();
    }

    private class TestBBTestC implements TestC {
    }
}

public interface TestC {
}
bash-2.05b$ java a.TestA
java.lang.IllegalAccessError: b/TestBB.foo
   at a.TestA.main (TestA.java:8)




More information about the kaffe mailing list