< prev index next > test/hotspot/jtreg/runtime/exceptionMsgs/NullPointerException/NullPointerExceptionTest.java
Print this page
System.out.println(oa1[0]);
Asserts.fail();
} catch (NullPointerException e) {
checkMessage(e, "oa1[0] = new Object();", e.getMessage(),
"Cannot store to object array because " +
! (hasDebugInfo ? "\"oa1\"" : "\"<local3>\"") + " is null");
}
// bastore (boolean)
try {
za1[0] = false;
System.out.println(za1[0]);
System.out.println(oa1[0]);
Asserts.fail();
} catch (NullPointerException e) {
checkMessage(e, "oa1[0] = new Object();", e.getMessage(),
"Cannot store to object array because " +
! (hasDebugInfo ? "\"oa1\"" : "\"<local3>\"") + " is null or is a null-free array and there's an attempt to store null in it");
}
// bastore (boolean)
try {
za1[0] = false;
System.out.println(za1[0]);
< prev index next >