source:
trunk/gcc/libjava/testsuite/libjava.lang/private_direct_read.java
| Last change on this file was 2, checked in by , 23 years ago | |
|---|---|
|
|
| File size: 533 bytes | |
| Line | |
|---|---|
| 1 | // Class private_direct_read |
| 2 | // Generated on Tue Nov 16 15:04:13 UTC 1999 |
| 3 | // |
| 4 | |
| 5 | class private_direct_read { |
| 6 | |
| 7 | private int foo; |
| 8 | |
| 9 | class private_direct_read_inner { |
| 10 | void test () { |
| 11 | int x = foo; |
| 12 | System.out.println ("x="+x); |
| 13 | } |
| 14 | } |
| 15 | void foo () |
| 16 | { |
| 17 | foo = 670; |
| 18 | private_direct_read_inner inn = this.new private_direct_read_inner (); |
| 19 | inn.test (); |
| 20 | } |
| 21 | public static void main (String[] arg) |
| 22 | { |
| 23 | System.out.println ("Testing class `private_direct_read'..."); |
| 24 | new private_direct_read().foo (); |
| 25 | } |
| 26 | } |
Note:
See TracBrowser
for help on using the repository browser.
