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

Modular java: remove /lib/ext/jfxrt.jar from java.policy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 9
    • javafx
    • None

      I was looking at a EA release of the Java 9 JDK (after the Modular java merge) and I saw something in the java.policy which shouldn't be there since the lib/ext directory no longer exists[1].

      The java.policy contains two entries of which the second one is no longer valid:

      grant codeBase "file:${java.home}/lib/jfxrt.jar" {
          permission java.security.AllPermission;
      };
      grant codeBase "file:${java.home}/lib/ext/jfxrt.jar" {
          permission java.security.AllPermission;
      };

      This is introduced with: https://javafx-jira.kenai.com/browse/RT-36848 and was correct at the time of implementation, but the /ext/ version should be removed now in the JDK 9 branch.

      [1] http://openjdk.java.net/jeps/220 Removed: The extension mechanism

            kcr Kevin Rushforth
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: