Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8161506

Deprecate pre-1.2 SecurityManager methods and fields with forRemoval=true

    Details

    • Subcomponent:
    • Resolved In Build:
      b130
    • Verification:
      Not verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mullan Sean Mullan
                Reporter:
                mullan Sean Mullan
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: