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

Document that SecurityManager::checkPackageAccess may be called by the VM

    Details

    • Subcomponent:
    • Resolved In Build:
      b175
    • Verification:
      Not verified

      Backports

        Description

        SecurityManager::checkPackageAccess may be invoked by the VM when a security manager is enabled but it's not currently specified in the javadoc.

        In addition, the API spec for SecurityManager::checkPackageAccess states "This method is called by the loadClass method of class loaders." but there is no way to enforce the class loader implementation to invoke it.

        The specification of SecurityManager::checkPackageAccess should be clarified to state that it may be called by the VM and the loadClass method of class loaders.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mullan Sean Mullan
                  Reporter:
                  mchung Mandy Chung
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: