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

test failure with Graal when security manager and policy file are used

    Details

    • Subcomponent:
    • Resolved In Build:
      b20
    • Verification:
      Verified

      Description

      We have a jtreg test that uses its own security settings:

      main/othervm/policy=jtreg.security.policy/secure=java.lang.SecurityManager

      causing an exception:

      Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "HotSpotGraalRuntimeMBean.debug" "read")
      at java.security.AccessControlContext.checkPermission(java.base@12-internal/AccessControlContext.java:472)
      at java.security.AccessController.checkPermission(java.base@12-internal/AccessController.java:1027)
      at java.lang.SecurityManager.checkPermission(java.base@12-internal/SecurityManager.java:408)
      at java.lang.SecurityManager.checkPropertyAccess(java.base@12-internal/SecurityManager.java:1152)
      at java.lang.System.getProperty(java.base@12-internal/System.java:843)
      at java.lang.Boolean.getBoolean(java.base@12-internal/Boolean.java:265)
      at org.graalvm.compiler.hotspot.management.HotSpotGraalRuntimeMBean.<clinit>(jdk.internal.vm.compiler.management@12-internal/HotSpotGraalRuntimeMBean.java:83)

        Attachments

          Activity

            People

            • Assignee:
              dlong Dean Long
              Reporter:
              dlong Dean Long
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: