This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: PR java/20338 - Call _Jv_InitClass for private static methods in an inner class
> >>Other Java compilers generate "accessor" methods for calls to private
> >>methods in a nested class, the real bug here is that GCJ doesn't do this
> >>- thats why the javac bytecode works fine on gij but gcj-produced
> >>bytecode does not.
> >>
> >>
> >
> >Thanks for the explanation. It's strange then that
> >"java" works with GCJ-generated bytecode. :-/
> >
> >
>
> Yeah, "java" is a bit more lenient. It has an option (-Xfuture iirc) to
> enable stricter checking. Probably we should have this for gij too.
You're right - "java -Xfuture" does indeed throw an
IllegalAccessError (checked in 1.4.2_07).
Thanks,
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.hostingzero.com/