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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 9
    • Component/s: security-libs
    • None

      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.

            Assignee:
            Sean Mullan
            Reporter:
            Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: