1 // PR19870: Test synthetic accessor generation for private static methods
2 // accessed across nested class boundaries.
3 public class PR19870_2
4 {
5   static class A
6   {
foo( )7     private static void foo( )
8     {
9       System.out.println( "1");
10     }
11 
bar( int x)12     private static void bar( int x)
13     {
14       System.out.println( x);
15       snafu( );
16       PR19870_2.snafu( );
17     }
18   }
19 
20   static class B
21   {
foo( )22     private static void foo( )
23     {
24       A.foo( );
25     }
26   }
27 
snafu( )28   private static void snafu( )
29   {
30     System.out.println( "3");
31   }
32 
main( String[] args)33   public static void main( String[] args)
34   {
35     A.foo( );
36     A.bar( 2);
37     B.foo( );
38   }
39 }
40