[Bug java/9369] wrong bytecode generated for static inner class with private constructor

tromey at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri May 13 23:27:00 GMT 2005


------- Additional Comments From tromey at gcc dot gnu dot org  2005-05-13 23:27 -------
This no longer fails due to a change that went in as part of the fix
for PR 8618.  In particular, we now emit the 'Inner' constructor as
package-private, not private.

This is kind of a slacker approach to implementing accessors.
For constructors and static methods it probably has the desired
effect without doing harm, though I haven't considered it in great
detail.  For ordinary methods it might be a problem due to overriding.

This PR should only be marked as "fixed" if there is another PR for the
case of accessors for methods and fields.  Even then it isn't entirely
clear if this is more hack or more fix.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9369



More information about the Java-prs mailing list