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

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

XMLWordPrintable

    • b175
    • Not verified

        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.

              mullan Sean Mullan
              mchung Mandy Chung (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: