Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8186535 Remove deprecated pre-1.2 SecurityManager methods and fields
  3. JDK-8192811

Release Note: Removal of Deprecated Pre-1.2 SecurityManager Methods and Fields

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            mullan Sean Mullan
            mullan Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: