--- old/test/hotspot/jtreg/runtime/LoaderConstraints/itableLdrConstraint/Test.java 2018-04-13 08:58:18.837878000 +0200 +++ new/test/hotspot/jtreg/runtime/LoaderConstraints/itableLdrConstraint/Test.java 2018-04-13 08:58:18.344841000 +0200 @@ -37,21 +37,23 @@ static String expectedErrorMessage1 = "loader constraint violation in interface itable initialization for class test.C: " + - "when selecting method test.I.m()Ltest/Foo; the class loader instance of PreemptingClassLoader " + - "(parent: \"app\" jdk.internal.loader.ClassLoaders$AppClassLoader) " + + "when selecting method test.I.m()Ltest/Foo; " + + "the class loader \"\" (instance of PreemptingClassLoader, " + + "child of \"app\" jdk.internal.loader.ClassLoaders$AppClassLoader) " + "for super interface test.I, and the class loader \"app\" " + - "(instance of jdk.internal.loader.ClassLoaders$AppClassLoader, " + - "parent: \"platform\" jdk.internal.loader.ClassLoaders$PlatformClassLoader) " + - "of the selected method's type, test.J have different Class objects for the type test.Foo used in the signature"; + "(instance of jdk.internal.loader.ClassLoaders$AppClassLoader) " + + "of the selected method's type, test.J have different Class objects " + + "for the type test.Foo used in the signature"; static String expectedErrorMessage2 = "loader constraint violation in interface itable initialization for class test.C: " + - "when selecting method test.I.m()Ltest/Foo; the class loader \"ItableLdrCnstrnt_Test_Loader\" " + - "(instance of PreemptingClassLoader, parent: \"app\" " + - "jdk.internal.loader.ClassLoaders$AppClassLoader) for super interface test.I, " + - "and the class loader \"app\" (instance of jdk.internal.loader.ClassLoaders$AppClassLoader, " + - "parent: \"platform\" jdk.internal.loader.ClassLoaders$PlatformClassLoader) " + - "of the selected method's type, test.J have different Class objects for the type test.Foo used in the signature"; + "when selecting method test.I.m()Ltest/Foo; " + + "the class loader \"ItableLdrCnstrnt_Test_Loader\" (instance of PreemptingClassLoader, " + + "child of \"app\" jdk.internal.loader.ClassLoaders$AppClassLoader) " + + "for super interface test.I, and the class loader \"app\" " + + "(instance of jdk.internal.loader.ClassLoaders$AppClassLoader) " + + "of the selected method's type, test.J have different Class objects " + + "for the type test.Foo used in the signature"; // Test that the error message is correct when a loader constraint error is // detected during itable creation.