< prev index next >
test/hotspot/jtreg/runtime/LoaderConstraints/differentLE/Test.java
Print this page
*** 71,85 ****
// it asks the super classloader for A.
// Then it loads the D2 variant of D from the current working directory and it's
// superclass C. This fails as D1 is already loaded with the same superclass.
static String expectedErrorMessage =
! "loader constraint violation: loader instance of PreemptingClassLoader " +
! "(parent: \"app\" jdk.internal.loader.ClassLoaders$AppClassLoader) wants to load " +
"class test.D_ambgs. A different class with the same name was previously loaded " +
! "by \"app\" (instance of jdk.internal.loader.ClassLoaders$AppClassLoader, " +
! "parent: \"platform\" jdk.internal.loader.ClassLoaders$PlatformClassLoader).";
public static void test_access() throws Exception {
try {
// Make a Class 'D_ambgs' under the default loader.
// This uses the implementation from the .java file.
--- 71,84 ----
// it asks the super classloader for A.
// Then it loads the D2 variant of D from the current working directory and it's
// superclass C. This fails as D1 is already loaded with the same superclass.
static String expectedErrorMessage =
! "loader constraint violation: loader \"<unnamed>\" (instance of PreemptingClassLoader, " +
! "child of \"app\" jdk.internal.loader.ClassLoaders$AppClassLoader) wants to load " +
"class test.D_ambgs. A different class with the same name was previously loaded " +
! "by \"app\" (instance of jdk.internal.loader.ClassLoaders$AppClassLoader).";
public static void test_access() throws Exception {
try {
// Make a Class 'D_ambgs' under the default loader.
// This uses the implementation from the .java file.
< prev index next >