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

Skip package access check when loading classes from modules that are targets of qualified exports

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:
      None

      Description

      This is a followup item resulting from the code review for JDK-8055206.

      The VM calls ClassLoader.checkPackageAccess before loading a class, which in turn calls SecurityManager.checkPackageAccess if a SecurityManager (SM) is enabled. For classes in modules that are the target of a qualified export and are referenced from code in the source module of the qualified export, we could skip the SM check since it is redundant.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mullan Sean Mullan
                Reporter:
                mullan Sean Mullan
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: