Failure to throw NullPointerException in -Xcomp
class t104
{
public static void main(String[] argv)
{
t104 o = null;
try
{
synchronized(o)
{
System.out.println("Fubar: monitorenter didn't throw.");
}
System.out.println("Bottom of try block.");
}
catch(Throwable t)
{
System.out.println("Exception thrown.");
System.out.println(t.toString());
}
}
}
class t104
{
public static void main(String[] argv)
{
t104 o = null;
try
{
synchronized(o)
{
System.out.println("Fubar: monitorenter didn't throw.");
}
System.out.println("Bottom of try block.");
}
catch(Throwable t)
{
System.out.println("Exception thrown.");
System.out.println(t.toString());
}
}
}
- relates to
-
JDK-4453698 HS1.4: Server VM hangs up while running b4212394 test
- Closed