[kaffe] Should IllegalAccessException be thrown or not?

Ito Kazumitsu kaz at maczuka.gcd.org
Tue Dec 20 16:22:43 PST 2005

From: Ito Kazumitsu <kaz at maczuka.gcd.org>
Date: Mon, 12 Dec 2005 13:21:59 +0900 (JST)

> Sun's JDK (the test programs compiled with ecj):
> Call a private constructor in the same class
> OK
> Call a private constructor in the same pakeage
> OK  (*3)
> Call a private constructor in another pakeage
> java.lang.IllegalAccessException: Class A can not access a member of class b.B$PrivateClass with modifiers ""
>    (*3) Ecj fails to put the private flag to the constructor.

This is not a issue of Kaffe, but just for your reference,
I found this bug reported in

and the following seems to be due to the same bug

More information about the kaffe mailing list