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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 9
    • 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.

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

              Created:
              Updated:
              Resolved: