JDK-8192811 : Release Note: Removal of Deprecated Pre-1.2 SecurityManager Methods and Fields
  • Type: Sub-task
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 10
  • Priority: P2
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2017-11-30
  • Updated: 2019-04-09
  • Resolved: 2017-11-30
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 10
10Resolved
Description
The following pre-1.2 deprecated `java.lang.SecurityManager` methods and fields that were marked  forRemoval=true have been removed:

* `inCheck` field
* `getInCheck` method
* `classDepth` method
* `classLoaderDepth` method
* `currentClassLoader` method
* `currentLoadedClass` method
* `inClass` method 
* `inClassLoader` method

In addition, the deprecated `checkMemberAccess` method has been changed to throw a `SecurityException` if the caller has not been granted `AllPermission`. This method is error-prone and users should instead invoke the `checkPermission` method directly.