--- old/test/hotspot/jtreg/runtime/exceptionMsgs/NullPointerException/NullPointerExceptionTest.java 2019-09-17 11:07:39.471418000 +0200 +++ new/test/hotspot/jtreg/runtime/exceptionMsgs/NullPointerException/NullPointerExceptionTest.java 2019-09-17 11:07:38.388387000 +0200 @@ -27,6 +27,7 @@ * @summary Test extended NullPointerException message for * classfiles generated with debug information. In this case the name * of the variable containing the array is printed. + * @bug 8218628 * @modules java.base/java.lang:open * java.base/jdk.internal.org.objectweb.asm * @library /test/lib @@ -38,6 +39,7 @@ * @summary Test extended NullPointerException message for class * files generated without debugging information. The message lists * detailed information about the entity that is null. + * @bug 8218628 * @modules java.base/java.lang:open * java.base/jdk.internal.org.objectweb.asm * @library /test/lib @@ -87,12 +89,10 @@ public static void checkMessage(Throwable t, String expression, String obtainedMsg, String expectedMsg) { - //System.out.println(" thrown msg: " + obtainedMsg); System.out.println("\nSource code:\n " + expression + "\n\nOutput:"); t.printStackTrace(System.out); if (obtainedMsg != expectedMsg && // E.g. both are null. !obtainedMsg.equals(expectedMsg)) { - // GL: need to fix the test cases! System.out.println("expected msg: " + expectedMsg); Asserts.assertEquals(expectedMsg, obtainedMsg); }