Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1739

using ReflectionToStringBuilder.toString on the URLClassLoader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.14.0
    • None
    • lang.builder.*
    • 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

          Activity

            People

              Unassigned Unassigned
              sustech-whl Wang Hailong
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: