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

Remove uses of sun.misc.ReflectUtil in java.desktop

XMLWordPrintable

    • b26

      java.desktop code calls several methods in sun.misc.ReflectUtil
      ReflectUtil.checkPackageAccess - 18 uses
      ReflectUtil.isPackageAccessible - 9 uses
      ReflectUtil.forName - just one usage

      After JEP 486 - "Permanently Disable the Security Manager" these were hollowed out.
      The first two are now no-ops so can just be removed.
      forName now just calls Class.forName() and since java.desktop uses the same classloader as java.base this is equivalent so can be collapsed to Class.forName directly

            prr Philip Race
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: