diff -r 4e981ab5986a src/hotspot/share/runtime/globals.hpp --- a/src/hotspot/share/runtime/globals.hpp Thu May 09 08:44:55 2019 +0200 +++ b/src/hotspot/share/runtime/globals.hpp Wed Aug 14 08:50:48 2019 +0200 @@ -643,7 +643,7 @@ product(bool, OmitStackTraceInFastThrow, true, \ "Omit backtraces for some 'hot' exceptions in optimized code") \ \ - manageable(bool, ShowCodeDetailsInExceptionMessages, false, \ + manageable(bool, ShowCodeDetailsInExceptionMessages, true, \ "Show exception messages from RuntimeExceptions that contain " \ "snippets of the failing code. Disable this to improve privacy.") \ \ diff -r 4e981ab5986a test/hotspot/jtreg/runtime/exceptionMsgs/NullPointerException/SuppressMessagesTest.java --- a/test/hotspot/jtreg/runtime/exceptionMsgs/NullPointerException/SuppressMessagesTest.java Thu May 09 08:44:55 2019 +0200 +++ b/test/hotspot/jtreg/runtime/exceptionMsgs/NullPointerException/SuppressMessagesTest.java Wed Aug 14 08:50:48 2019 +0200 @@ -24,11 +24,11 @@ /** * @test - * @summary Test that the default of flag ShowCodeDetailsInExceptionMessages is 'false', - * i.e., make sure the VM does not print the message on default. + * @summary Test that the default of flag ShowCodeDetailsInExceptionMessages is 'true', + * i.e., make sure the VM does print the message on default. * @library /test/lib * @compile -g SuppressMessagesTest.java - * @run main/othervm SuppressMessagesTest noMessage + * @run main/othervm SuppressMessagesTest printMessage */ /** * @test diff -r 4e981ab5986a test/hotspot/jtreg/vmTestbase/jit/t/t104/t104.gold --- a/test/hotspot/jtreg/vmTestbase/jit/t/t104/t104.gold Thu May 09 08:44:55 2019 +0200 +++ b/test/hotspot/jtreg/vmTestbase/jit/t/t104/t104.gold Wed Aug 14 08:50:48 2019 +0200 @@ -1,2 +1,2 @@ Exception thrown. -java.lang.NullPointerException +java.lang.NullPointerException: Cannot enter synchronized block because '' is null. diff -r 4e981ab5986a test/langtools/jdk/jshell/ToolSimpleTest.java --- a/test/langtools/jdk/jshell/ToolSimpleTest.java Thu May 09 08:44:55 2019 +0200 +++ b/test/langtools/jdk/jshell/ToolSimpleTest.java Wed Aug 14 08:50:48 2019 +0200 @@ -132,7 +132,7 @@ + "| Caused by: java.io.IOException: bar\n" + "| at n (#2:1)\n" + "| ...\n" - + "| Caused by: java.lang.NullPointerException\n" + + "| Caused by: java.lang.NullPointerException: Cannot invoke 'String.toString()' because 'null' is null.\n" + "| at p (#1:1)\n" + "| ..."), (a) -> assertCommand(a, "/drop p",