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

Deprecate SecurityManager checkTopLevelWindow, checkSystemClipboardAccess, checkAwtEventQueueAccess

XMLWordPrintable

    • b108


      This methods have a dependency on AWTPermission and so are problematic for a modular JDK as it results in a reflective dependency on the desktop module.

      As these methods are legacy (have not been required since JDK1.1) then we should consider deprecating them with a view to changing them in Java SE 9 so that they don't require AWTPermission. For Java SE 9 then they could check AllPermission or throw an exception.

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: