CSR :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
JDK-8162613 :
|
Several deprecated methods and fields in SecurityManager are only for use in implementations prior to JDK 1.2. Each of them have been deprecated since JDK 1.2 and are brittle and should not be used in modern implementations. They should be marked with forRemoval=true to indicate they will be removed in a subsequent JDK major release. It is no longer necessary to retain support for pre-1.2 SecurityManager implementations and removing these methods will clean up the SecurityManager class and eliminate the potential for them to be used incorrectly or insecurely. The forRemoval=true attribute should be added to the inCheck field, and the getInCheck, classDepth, classLoaderDepth, currentClassLoader, currentLoadedClass, inClass, and inClassLoader methods. The checkMemberAccess method is also a pre-1.2 deprecated method, but it has already been marked with forRemoval=true as part of JDK-8145468.
|