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

RegressionTestSecurityManager needs to implement checkPermission(Permission, Object)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • tools
    • None
    • generic
    • generic

      com.sun.javatest.regtest.RegressionTestSecurityManager shall implement the checkPermission(Permission, Object) method to get the jdk tests to pass the permission checks in samevm mode.

      jdk/test/java/lang/management/ManagementFactory/MXBeanProxyTest.java fails in samevm mode due to this bug.

      java.security.AccessControlException: access denied ("javax.management.MBeanTrustPermission" "register")
             at java.security.AccessControlContext.checkPermission(AccessControlContext.java:345)
             at java.lang.SecurityManager.checkPermission(SecurityManager.java:585)
             at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1848)
             at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:322)
             at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:512)
             at MXBeanProxyTest.main(MXBeanProxyTest.java:88)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
             at java.lang.reflect.Method.invoke(Method.java:613)
             at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
             at java.lang.Thread.run(Thread.java:717)

            Unassigned Unassigned
            mchung Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: