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

Several accessClassInPackage RuntimePermissions should not be needed to use java.desktop module

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Labels:
      None

      Description

      When running with a SecurityManager, several permissions need to be granted to code that accesses the java.desktop module in the lib/security/default.policy file:

      // permissions needed by applications using java.desktop module
      grant {
          permission java.lang.RuntimePermission "accessClassInPackage.com.sun.beans";
          permission java.lang.RuntimePermission "accessClassInPackage.com.sun.beans.*";
          permission java.lang.RuntimePermission "accessClassInPackage.com.sun.java.swing.plaf.*";
          permission java.lang.RuntimePermission "accessClassInPackage.com.apple.*";
      };

      These permissions should not be necessary since the application is not accessing classes in these internal packages directly.

      Information on which tests fail will be added as a comment to this issue.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mullan Sean Mullan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Due:
                Created:
                Updated: