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

java/awt/print/PrinterJob/CheckPrivilege.java fails due to disabled SecurityManager

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b23

      Backports

        Description

        $ CONF=linux-x86_64-server-fastdebug make test TEST=java/awt/print/PrinterJob/CheckPrivilege.java

        STDERR:
        Failed to install SecurityManager
        java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
        at java.base/java.lang.System.setSecurityManager(System.java:411)
        at CheckPrivilege.main(CheckPrivilege.java:81)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:833)
        java.lang.RuntimeException: Failed to install SecurityManager
        at CheckPrivilege.main(CheckPrivilege.java:87)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:833)

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                shade Aleksey Shipilev
                Reporter:
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: