[Bug java/19870] gcj -C doesn't generate accessors for private members across nested class boundaries

rmathew at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri May 27 06:04:00 GMT 2005


------- Additional Comments From rmathew at gcc dot gnu dot org  2005-05-27 05:39 -------
Note that this PR should not be closed as the checked-in patch was
only for generating accessors for static fields. Methods are still
a problem as is demonstrated by this simple testcase:

public class A
{
  public static class B
  {
    private static void snafu( )
    {
      System.out.println( "Hello!");
    }
  }

  public static void main( String[] args)
  {
    B.snafu( );
  }
}


-- 


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



More information about the Gcc-bugs mailing list