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

jdk/net/Sockets/Test.java fails after JDK-8227642

    Details

    • Subcomponent:
    • Resolved In Build:
      b07

      Backports

        Description

        JDK-8227642 introduced a System.getProperty() call in test/lib/jdk/test/lib/Platform.java which causes problems for other tests which have a security manager installed. One such test is jdk/net/Sockets/Test.java which fails with:

        java.lang.ExceptionInInitializerError
        at Test.checkExpectedOptionSupport(Test.java:192)
        at Test.<clinit>(Test.java:55)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:830)
        Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "jdk.test.docker.command" "read")
        at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
        at java.base/java.security.AccessController.checkPermission(AccessController.java:1034)
        at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:408)
        at java.base/java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1152)
        at java.base/java.lang.System.getProperty(System.java:881)
        at jdk.test.lib.Platform.<clinit>(Platform.java:41)
        ... 8 more

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sgehwolf Severin Gehwolf
                  Reporter:
                  sgehwolf Severin Gehwolf
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: