< prev index next >

## src/java.logging/share/classes/java/util/logging/LogManager.java

Print this page

    @@ -2439,11 +2439,18 @@
           * If the check fails we throw a SecurityException, otherwise
           * we return normally.
           *
           * @throws  SecurityException  if a security manager exists and if
           *             the caller does not have LoggingPermission("control").
    +      * @deprecated This method is only useful in conjunction with
    +      *       {@linkplain SecurityManager the Security Manager}, which is
    +      *       deprecated and subject to removal in a future release.
    +      *       Consequently, this method is also deprecated and subject to
    +      *       removal. There is no replacement for the Security Manager or this
    +      *       method.
           */
    +     @Deprecated(since="17", forRemoval=true)
          public void checkAccess() throws SecurityException {
              checkPermission();
          }

          // Nested class to represent a node in our tree of named loggers.

< prev index next >