source:
trunk/src/gcc/libjava/testsuite/libjava.compile/PR232B.java@
1124
| Last change on this file since 1124 was 2, checked in by , 23 years ago | |
|---|---|
|
|
| File size: 286 bytes | |
| Line | |
|---|---|
| 1 | // This triggers a failure when compiling from bytecode (only) with 20000519 |
| 2 | |
| 3 | public class PR232B |
| 4 | { |
| 5 | private static Object lock = new Object(); |
| 6 | private static PR232B instance = null; |
| 7 | |
| 8 | public void a() |
| 9 | { |
| 10 | synchronized(lock) |
| 11 | { |
| 12 | instance = new PR232B(); |
| 13 | } |
| 14 | } |
| 15 | }; |
Note:
See TracBrowser
for help on using the repository browser.
