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

Access control exception during AWT shutdown when running with –Djava.security.manager

XMLWordPrintable

    • b61
    • generic
    • windows

      JDK tested: 9b62,9b61,9b60
      OS tested: Windows, Linux
      Is it a regression? Yes (passes with JDK9b60 and starts failing from 9b61)
      Regression introduced in release/build:9b61
      Is it platform specific? Yes( fails in Windows and passes in Linux)
      The is failure reproduced: always

      AWT tests fails with below exception from 9b61

      Exception in thread "AWT-Windows" java.security.AccessControlException: access d
      enied ("java.lang.RuntimePermission" "enableContextClassLoaderOverride")
              at java.security.AccessControlContext.checkPermission(AccessControlConte
      xt.java:468)
              at java.security.AccessController.checkPermission(AccessController.java:
      894)
              at java.lang.SecurityManager.checkPermission(SecurityManager.java:541)
              at java.lang.Thread.init(Thread.java:398)
              at java.lang.Thread.init(Thread.java:349)
              at java.lang.Thread.<init>(Thread.java:596)
              at sun.misc.ManagedLocalsThread.<init>(ManagedLocalsThread.java:62)
              at sun.misc.InnocuousThread.<init>(InnocuousThread.java:57)
              at sun.misc.InnocuousThread.<init>(InnocuousThread.java:53)
              at sun.awt.AWTAutoShutdown.activateBlockerThread(AWTAutoShutdown.java:34
      9)
              at sun.awt.AWTAutoShutdown.setToolkitBusy(AWTAutoShutdown.java:263)
              at sun.awt.AWTAutoShutdown.notifyToolkitThreadBusy(AWTAutoShutdown.java:
      146)
              at sun.awt.windows.WToolkit.eventLoop(Native Method)
              at sun.awt.windows.WToolkit.run(WToolkit.java:319)
              at java.lang.Thread.run(Thread.java:745)
              at sun.misc.InnocuousThread.run(InnocuousThread.java:83)

            serb Sergey Bylokhov
            pchopra Pooja Chopra (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: