< prev index next >
test/hotspot/jtreg/runtime/exceptionMsgs/NullPointerException/SuppressMessagesTest.java
Print this page
rev 56281 : 8218628: Add detailed message to NullPointerException describing what is null.
Summary: This is the implementation of JEP 358: Helpful NullPointerExceptions.
Reviewed-by: coleenp
rev 56283 : [mq]: fixes_review_of_16.patch
*** 24,47 ****
--- 24,50 ----
/**
* @test
* @summary Test that the default of flag ShowCodeDetailsInExceptionMessages is 'false',
* i.e., make sure the VM does not print the message on default.
+ * @bug 8218628
* @library /test/lib
* @compile -g SuppressMessagesTest.java
* @run main/othervm SuppressMessagesTest noMessage
*/
/**
* @test
* @summary Test that the messages are suppressed if flag ShowCodeDetailsInExceptionMessages is 'false'.
+ * @bug 8218628
* @library /test/lib
* @compile -g SuppressMessagesTest.java
* @run main/othervm -XX:-ShowCodeDetailsInExceptionMessages SuppressMessagesTest noMessage
*/
/**
* @test
* @summary Test that the messages are printed if flag ShowCodeDetailsInExceptionMessages is 'true'.
+ * @bug 8218628
* @library /test/lib
* @compile -g SuppressMessagesTest.java
* @run main/othervm -XX:+ShowCodeDetailsInExceptionMessages SuppressMessagesTest printMessage
*/
< prev index next >