[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
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=77473

and the following seems to be due to the same bug
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=117758



More information about the kaffe mailing list