Wang Hailong created LANG-1739:
----------------------------------
Summary: using ReflectionToStringBuilder.toString on the
URLClassLoader
Key: LANG-1739
URL: https://issues.apache.org/jira/browse/LANG-1739
Project: Commons Lang
Issue Type: Bug
Components: lang.builder.*
Affects Versions: 3.14.0
Environment: jdk18
Reporter: Wang Hailong
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 = {color:#cc7832}new
{color}URLClassLoader({color:#cc7832}new {color}URL[]{}){color:#cc7832};
{color}String result =
ReflectionToStringBuilder.toString(urlClassLoader){color:#cc7832};{color}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)