[Bug java/19870] gcj -C doesn't generate accessors for private members across nested class boundaries
mark at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Dec 22 16:45:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list