You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This test is disabled in #20625 and requires further investigation.
URLClassLoader previously relied on java.security.AccessController to determine whether or not a class to be loaded can be found on the classpath. NonExistJarTests.CheckForError1 tests that class B_Dummy that is loaded in the shared class cache but is not on the classpath is not loaded and should result in:
CORRECT A
Exception in thread "main" java.lang.NoClassDefFoundError: jnurlcldr.shared.nonexistjar.B_Dummy
at jnurlcldr.shared.nonexistjar.A_Main$Data.getInt(A_Main.java:33)
at jnurlcldr.shared.nonexistjar.A_Main.main(A_Main.java:47)
Caused by: java.lang.ClassNotFoundException: jnurlcldr.shared.nonexistjar.B_Dummy
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:827)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1099)
... 2 more
With the latest JEP 486 changes the classpath check is not enforced and B_Dummy is retrieved from the scc.
This test is disabled in #20625 and requires further investigation.
URLClassLoader previously relied on java.security.AccessController to determine whether or not a class to be loaded can be found on the classpath. NonExistJarTests.CheckForError1 tests that class B_Dummy that is loaded in the shared class cache but is not on the classpath is not loaded and should result in:
With the latest JEP 486 changes the classpath check is not enforced and
B_Dummy
is retrieved from the scc.Related to: #20563
The text was updated successfully, but these errors were encountered: