gij IllegalAccessError

Ranjit Mathew rmathew@gmail.com
Thu May 19 10:38:00 GMT 2005


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/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /