1 // Class indirect_read 2 // Generated on Mon Nov 15 17:20:40 UTC 1999 3 // 4 5 class indirect_read { 6 7 int foo; 8 9 class indirect_read_inner { test()10 void test () { 11 } 12 13 class other { testx()14 void testx () { 15 int x = foo; 16 System.out.println ("x="+x); 17 } 18 } 19 20 } foo()21 void foo () 22 { 23 foo = 670; 24 indirect_read_inner inn = this.new indirect_read_inner (); 25 indirect_read_inner.other o = inn.new other (); 26 o.testx (); 27 } main(String[] arg)28 public static void main (String[] arg) 29 { 30 System.out.println ("Testing class `indirect_read'..."); 31 new indirect_read().foo (); 32 } 33 } 34