Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
3.14.0
-
None
-
None
-
jdk18
Description
throw java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.security.AccessControlContext java.net.URLClassLoader.acc accessible: module java.base does not "opens java.net" to unnamed module @aec6354
The test code is
URLClassLoader urlClassLoader = new URLClassLoader(new URL[]{});String result = ReflectionToStringBuilder.toString(urlClassLoader);
Attachments
Issue Links
- duplicates
-
LANG-1685 [JDK17] ToStringBuilder.reflectionToString fails with InaccessibleObjectException on java.lang classes
- Open