gcc/libjava/testsuite/libjava.compile/PR232.java

17 lines
354 B
Java
Raw Normal View History

// Use of a "static final String" as a monitor causes ICE
// in jc1 (20000520)
//
// Program received signal SIGSEGV, Segmentation fault.
// put_decl_node (node=0x0) at ../../../gcc/java/lang.c:413
// 413 if (TREE_CODE (node) == POINTER_TYPE)
class PR232
{
static final String lock= "LOCK";
void a()
{
synchronized(lock) {}
}
};