< prev index next >

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

Print this page

        

@@ -35,18 +35,20 @@
 public class Test {
 
     // Check that all names have external formatting ('.' and not '/' in package names).
     // Check for parent of class loader.
     static String expectedErrorMessage1 =
-        "loader instance of PreemptingClassLoader (parent: \"app\" " +
-        "jdk.internal.loader.ClassLoaders$AppClassLoader) attempted duplicate class definition for test.Foo.";
+        "loader \"<unnamed>\" (instance of PreemptingClassLoader, " +
+        "child of \"app\" jdk.internal.loader.ClassLoaders$AppClassLoader) " +
+        "attempted duplicate class definition for test.Foo.";
 
     // Check that all names have external formatting ('.' and not '/' in package names).
     // Check for name and parent of class loader.
     static String expectedErrorMessage2 =
-        "loader \"DuplicateLE_Test_Loader\" (instance of PreemptingClassLoader, parent: \"app\" " +
-        "jdk.internal.loader.ClassLoaders$AppClassLoader) attempted duplicate class definition for test.Foo.";
+        "loader \"DuplicateLE_Test_Loader\" (instance of PreemptingClassLoader, " +
+        "child of \"app\" jdk.internal.loader.ClassLoaders$AppClassLoader) " +
+        "attempted duplicate class definition for test.Foo.";
 
     // Test that the error message is correct when a loader constraint error is
     // detected during vtable creation.
     //
     // In this test, during vtable creation for class Task, method "Task.m()LFoo;"
< prev index next >