-
Sub-task
-
Resolution: Done
-
Major
-
None
-
None
-
None
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"))