source:
branches/libc-0.6/src/gcc/libjava/testsuite/libjava.lang/pr184.java
| Last change on this file was 2, checked in by , 23 years ago | |
|---|---|
|
|
| File size: 264 bytes | |
| Line | |
|---|---|
| 1 | public class pr184 |
| 2 | { |
| 3 | public static void main(String[] args) |
| 4 | { |
| 5 | pr184 n = null; |
| 6 | try |
| 7 | { |
| 8 | n.foo(); |
| 9 | } |
| 10 | catch (NullPointerException x) |
| 11 | { |
| 12 | System.out.println(x); |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | int x = 2; |
| 17 | |
| 18 | final int foo() |
| 19 | { |
| 20 | return x; |
| 21 | }; |
| 22 | } |
Note:
See TracBrowser
for help on using the repository browser.
