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

setGlobalCurrentFocusCycleRoot unexpectedly throws SecurityException

    Details

    • Subcomponent:
    • Resolved In Build:
      b40
    • CPU:
      x86
    • OS:
      generic
    • Verification:
      Verified

      Description

      The closed/javax/management/security/ClientNotifForwarderTest.java test fails on all platforms:

      java.security.AccessControlException: access denied ("java.awt.AWTPermission" "replaceKeyboardFocusManager")
              at java.security.AccessControlContext.checkPermission(AccessControlContext.java:364)
              at java.security.AccessController.checkPermission(AccessController.java:555)
              at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
              at java.awt.KeyboardFocusManager.checkReplaceKFMPermission(KeyboardFocusManager.java:3110)
              at java.awt.KeyboardFocusManager.setGlobalCurrentFocusCycleRoot(KeyboardFocusManager.java:1277)
              at java.awt.Container.findTraversalRoot(Container.java:3248)
              at java.awt.Container.getTraversalRoot(Container.java:3311)
              at java.awt.Component.getNextFocusCandidate(Component.java:7845)
              at java.awt.Component.transferFocus(Component.java:7827)
              at java.awt.Component.hide(Component.java:1689)
              at java.awt.Window.hide(Window.java:1116)
              at java.awt.Component.show(Component.java:1658)
              at java.awt.Component.setVisible(Component.java:1608)
              at java.awt.Window.setVisible(Window.java:1014)
              at ClientNotifForwarderTest.main(ClientNotifForwarderTest.java:128)
              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:474)
              at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
              at java.lang.Thread.run(Thread.java:722)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ant Anton Tarasov
                Reporter:
                ant Anton Tarasov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: