JDK-8008981 : Deprecate SecurityManager checkTopLevelWindow, checkSystemClipboardAccess, checkAwtEventQueueAccess
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-02-26
  • Updated: 2018-03-21
  • Resolved: 2013-09-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b108Fixed
Related Reports
Relates :  
Relates :  
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.