Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8165271

Fix use of reflection to gain access to private fields

    Details

    • Subcomponent:
    • Resolved In Build:
      b142

      Description

      sun.awt.AppletSecurity::currentAppletClassLoader hacks into private fields in URLClassLoader::acc and AccessControlContext::context. This fix needs to be re-examined as it will not work with the upcoming change of the module system

      Also, (according to the comments in InetAddress.java) deploy code uses reflection to gain access to InetAddress.getByName(String,InetAddress). We should add an accessor to the existing JavaNetInetAddressAccess class returned by SharedSecrets.

        Attachments

          Activity

            People

            • Assignee:
              ddehaven David Dehaven (Inactive)
              Reporter:
              mchung Mandy Chung
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: