source:
trunk/gcc/libjava/testsuite/libjava.compile/PR232.java@
3609
| Last change on this file since 3609 was 2, checked in by , 23 years ago | |
|---|---|
|
|
| File size: 354 bytes | |
| Line | |
|---|---|
| 1 | // Use of a "static final String" as a monitor causes ICE |
| 2 | // in jc1 (20000520) |
| 3 | // |
| 4 | // Program received signal SIGSEGV, Segmentation fault. |
| 5 | // put_decl_node (node=0x0) at ../../../gcc/java/lang.c:413 |
| 6 | // 413 if (TREE_CODE (node) == POINTER_TYPE) |
| 7 | |
| 8 | class PR232 |
| 9 | { |
| 10 | static final String lock= "LOCK"; |
| 11 | |
| 12 | void a() |
| 13 | { |
| 14 | synchronized(lock) {} |
| 15 | } |
| 16 | }; |
Note:
See TracBrowser
for help on using the repository browser.
