-
Enhancement
-
Resolution: Fixed
-
P2
-
9
-
b130
-
Not verified
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 ofJDK-8145468.
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
- csr of
-
CCC-8161506 Deprecate pre-1.2 SecurityManager methods and fields with forRemoval=true
-
- Closed
-
- relates to
-
JDK-8186535 Remove deprecated pre-1.2 SecurityManager methods and fields
-
- Resolved
-
-
JDK-8177684 Suppress lint removal warnings in AppletSecurity
-
- Resolved
-
-
JDK-8162875 Remove deprecated security APIs that are marked for removal
-
- Closed
-
There are no Sub-Tasks for this issue.