This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/9369] wrong bytecode generated for static inner class with private constructor
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 May 2005 23:27:25 -0000
- Subject: [Bug java/9369] wrong bytecode generated for static inner class with private constructor
- References: <20030119181601.9369.jsturm@one-point.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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