JDK-8200185 : Remove terminally deprecated SecurityManager APIs
  • Type: CSR
  • Component: security-libs
  • Sub-Component: java.security
  • Priority: P3
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 11
  • Submitted: 2018-03-23
  • Updated: 2018-04-03
  • Resolved: 2018-04-03
Related Reports
CSR :  
Description
Summary
-------

Remove the terminally deprecated `java.lang.SecurityManager` methods that have been marked for removal since Java SE 9: `checkTopLevelWindow`, `checkSystemClipboardAccess`, `checkAwtEventQueueAccess`, and `checkMemberAccess`.

Problem
-------

In Java SE 9, these methods were marked for removal as part of JDK-8145468.  Also in Java SE 9, the first three methods were re-specified to check `AllPermission` by JDK-8029886, and in Java SE 10 `checkMemberAccess` was changed to check AllPermission by JDK-8186535.  These methods no longer have any benefit, and removing them will follow through on the the plan to remove them.

Solution
--------

Remove the following deprecated java.lang.SecurityManager methods that have been marked with forRemoval=true since JDK 9: `checkTopLevelWindow`, `checkSystemClipboardAccess`, `checkAwtEventQueueAccess`, and `checkMemberAccess`.

Specification
-------------

See the attached specdiff 8193032-specdiff.00.zip.

Comments
Moving to Approved.
03-04-2018

Moving the request to Provisional state; will move to Approve once the request is finalized. I note the parent issue already has a release note indicated, which is appropriate for this change.
28-03-2018

specdiff
26-03-2018