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

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • tbd
    • Affects Version/s: 9
    • Component/s: client-libs
    • None

      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.

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

              Created:
              Updated:
              Resolved: