Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7100538

jdk8, AccessControlException in the regression tests: jtreg issue?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • None
    • tools
    • x86
    • generic

      Some regression tests deploying a custom policy fail with JDK8 and mac port if running with jtreg.
      For instance, closed/java/awt/PrintJob/Security/SecurityDialogTest.java tries to check if it is possible to print to a file with certain minimal set of permissions. It is started with a separate JVM and does use a policy file and fails with the following exception on Linux, in JDK 8. On Mac with macport, the exception is different.

      Note that test works OK with jdk 7 fcs and older 6 releases etc. It also work correctly in jdk8 without jtreg with java.security.policy set.

      java.security.AccessControlException: access denied ("java.util.PropertyPermission" "sun.java2d.xrgradcache" "read")
      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:364)
      at java.security.AccessController.checkPermission(AccessController.java:555)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
      at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302)
      at java.lang.System.getProperty(System.java:707)
      at sun.java2d.xr.XRCompositeManager.<init>(XRCompositeManager.java:86)

      The root cause of a problem may be in recent security changes in AccessController in jdk which should be someway accomodated in jtreg.

            Unassigned Unassigned
            yan Yuri Nesterenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: