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

[TESTBUG] compiler/jvmci/SecurityRestrictionsTest checks are too tight

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • b89

        #section:main
        ----------messages:(3/290)----------
        command: main -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI compiler.jvmci.SecurityRestrictionsTest NO_PERM
        reason: User specified action: run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI compiler.jvmci.SecurityRestrictionsTest NO_PERM
        elapsed time (seconds): 13.901
        ----------System.out:(0/0)----------
        ----------System.err:(30/2071)----------
        java.lang.AssertionError: Got unexpected exception ExceptionInInitializerError instead of AccessControlException
        at jdk.test.lib.Utils.runAndCheckException(Utils.java:494)
        at compiler.jvmci.SecurityRestrictionsTest$TestCase.run(SecurityRestrictionsTest.java:137)
        at compiler.jvmci.SecurityRestrictionsTest.main(SecurityRestrictionsTest.java:67)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:520)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
        at java.lang.Thread.run(Thread.java:747)
        Caused by: java.lang.ExceptionInInitializerError
        at jdk.vm.ci.hotspot.CompilerToVM.initialize(CompilerToVM.java:59)
        at jdk.vm.ci.hotspot.CompilerToVM.<clinit>(CompilerToVM.java:54)
        at compiler.jvmci.SecurityRestrictionsTest$TestCase.lambda$run$0(SecurityRestrictionsTest.java:139)
        at jdk.test.lib.Utils.runAndCheckException(Utils.java:485)
        ... 8 more
        Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "jvmci.inittimer" "read")
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:468)
        at java.security.AccessController.checkPermission(AccessController.java:894)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:541)
        at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
        at java.lang.System.getProperty(System.java:715)
        at java.lang.Boolean.getBoolean(Boolean.java:257)
        at jdk.vm.ci.inittimer.InitTimer.<clinit>(InitTimer.java:60)
        ... 12 more

              tpivovarova Tatiana Pivovarova (Inactive)
              iignatyev Igor Ignatyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: