This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gij IllegalAccessError


Norman Hendrich wrote:
> Hello,
> 
> is this a known problem with inner classes?  
> 
> Program works fine when compiled (modulo minor AWT issues), but gij
> complains about IllegalAccessErrors.

Very likely you're seeing the same problem as PR19870.

The problem is that GCJ does not generate "synthetic
accessors" for accessing a private member when inner
(and top-level) classes are involved.

BTW, you'd find that "java" from the JDK is able to
execute your class files just fine, unless you use
the "-verify" option.

Ranjit.

-- 
Ranjit Mathew      Email: rmathew AT gmail DOT com

Bangalore, INDIA.    Web: http://ranjitmathew.hostingzero.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]