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

Deprecate SecurityManager checkTopLevelWindow, checkSystemClipboardAccess, checkAwtEventQueueAccess

    XMLWordPrintable

Details

    • b108

    Description


      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: