• Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • OpenJDK8 -> OpenJDK11
    • None
    • Sprint 215 AMM, Sprint 217 AMM

      Due to modularisation, the methods java.lang.SecurityManager.checkAwtEventQueueAccess(), java.lang.SecurityManager.checkSystemClipboardAccess() and java.lang.SecurityManager.checkTopLevelWindow(java.lang.Object) have been removed, so that the core SecurityManager class does not depend on the AWT stack.

      When
      a Java class uses java.lang.SecurityManager.checkAwtEventQueueAccess(), java.lang.SecurityManager.checkSystemClipboardAccess() or java.lang.SecurityManager.checkTopLevelWindow(java.lang.Object)

      Perform
      add a hint to replace with a class to checkPermission(java.security.Permission) as follows:

      • java.lang.SecurityManager.checkAwtEventQueueAccess() --> java.lang.SecurityManager.checkPermission(new AWTPermission("accessEventQueue"))
      • java.lang.SecurityManager.checkSystemClipboardAccess() -->
        java.lang.SecurityManager.checkPermission(new AWTPermission("accessClipboard"))
      • java.lang.SecurityManager.checkTopLevelWindow(java.lang.Object) --> java.lang.SecurityManager.checkPermission(new AWTPermission("showWindowWithoutWarningBanner"))

              rhn-support-kpunwatk Karishma Punwatkar
              rhn-engineering-ahughes Andrew Hughes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: