This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/19870] gcj -C doesn't generate accessors for private members across nested class boundaries
- From: "mark at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 22 Dec 2005 16:45:10 -0000
- Subject: [Bug java/19870] gcj -C doesn't generate accessors for private members across nested class boundaries
- References: <bug-19870-3639@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #19 from mark at gcc dot gnu dot org 2005-12-22 16:45 -------
The testcase in the following message still seems to fail:
http://gcc.gnu.org/ml/java/2005-12/msg00181.html
Here is a variant of the original example that also fails:
public class A
{
public static class B
{
private int i = 42;
}
public static void main(String[] args)
{
System.out.println(new B().i);
}
}
The only change is making i an instance field instead of a static class field.
--
mark at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19870