< prev index next >

test/hotspot/jtreg/runtime/LoaderConstraints/itableLdrConstraint/Test.java

Print this page

        

*** 35,59 **** public class Test { 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) " + "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"; 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"; // Test that the error message is correct when a loader constraint error is // detected during itable creation. // // In this test, during itable creation for class C, method "m()LFoo;" for --- 35,61 ---- public class Test { 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 \"<unnamed>\" (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"; 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, " + ! "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. // // In this test, during itable creation for class C, method "m()LFoo;" for
< prev index next >