< prev index next >
test/hotspot/jtreg/runtime/LoaderConstraints/vtableLdrConstraint/Test.java
Print this page
@@ -34,23 +34,27 @@
*/
public class Test {
static String expectedErrorMessage1 =
- "loader constraint violation for class test.Task: when selecting overriding method test.Task.m()Ltest/Foo; " +
- "the class loader instance of PreemptingClassLoader " +
- "(parent: \"app\" jdk.internal.loader.ClassLoaders$AppClassLoader) of the selected method's type test.Task, " +
- "and the class loader \"app\" (instance of jdk.internal.loader.ClassLoaders$AppClassLoader, " +
- "parent: \"platform\" jdk.internal.loader.ClassLoaders$PlatformClassLoader) for its super type test.J " +
+ "loader constraint violation for class test.Task: " +
+ "when selecting overriding method test.Task.m()Ltest/Foo; " +
+ "the class loader \"<unnamed>\" (instance of PreemptingClassLoader, " +
+ "child of \"app\" jdk.internal.loader.ClassLoaders$AppClassLoader) " +
+ "of the selected method's type test.Task, " +
+ "and the class loader \"app\" (instance of jdk.internal.loader.ClassLoaders$AppClassLoader) " +
+ "for its super type test.J " +
"have different Class objects for the type test.Foo used in the signature";
static String expectedErrorMessage2 =
- "loader constraint violation for class test.Task: when selecting overriding method test.Task.m()Ltest/Foo; " +
+ "loader constraint violation for class test.Task: " +
+ "when selecting overriding method test.Task.m()Ltest/Foo; " +
"the class loader \"VtableLdrCnstrnt_Test_Loader\" (instance of PreemptingClassLoader, " +
- "parent: \"app\" jdk.internal.loader.ClassLoaders$AppClassLoader) of the selected method's type test.Task, " +
- "and the class loader \"app\" (instance of jdk.internal.loader.ClassLoaders$AppClassLoader, " +
- "parent: \"platform\" jdk.internal.loader.ClassLoaders$PlatformClassLoader) for its super type test.J " +
+ "child of \"app\" jdk.internal.loader.ClassLoaders$AppClassLoader) " +
+ "of the selected method's type test.Task, " +
+ "and the class loader \"app\" (instance of jdk.internal.loader.ClassLoaders$AppClassLoader) " +
+ "for its super 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 vtable creation.
//
< prev index next >