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

Update package.access and package.definition descriptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • security-libs
    • None

      The current descriptions of the 'package.access' and 'package.definition' security properties are no longer accurate in the java.security configuration file.

      The behavior of these properties was changed with the introduction of the JDK modular system in JDK 9.

      ====

      #
      # List of comma-separated packages that start with or equal this string
      # will cause a security exception to be thrown when passed to the
      # SecurityManager::checkPackageAccess method unless the corresponding
      # RuntimePermission("accessClassInPackage."+package) has been granted.
      #
      package.access=sun.misc.,\
                     sun.reflect.,\

      #
      # List of comma-separated packages that start with or equal this string
      # will cause a security exception to be thrown when passed to the
      # SecurityManager::checkPackageDefinition method unless the corresponding
      # RuntimePermission("defineClassInPackage."+package) has been granted.
      #
      # By default, none of the class loaders supplied with the JDK call
      # checkPackageDefinition.
      #
      package.definition=sun.misc.,\
                         sun.reflect.,\


      ===

      The implementation comments in SecurityManager.checkPackageAccess(String pkg) and SecurityManager.checkPackageDefinition(String pkg) describe better how these properties now function

            coffeys Sean Coffey
            coffeys Sean Coffey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: