Skip to content

SecurityManager is deprecated for removal #445

@cushon

Description

@cushon

The SecurityManager API is deprecated for removal, see https://openjdk.org/jeps/486

It is being used for getClassContext:

private static final class ClassContextSecurityManager extends SecurityManager {
protected Class<?>[] getClassContext() {
return super.getClassContext();

That use-case could be migrated to java.lang.StackWalker API added in Java 9: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/StackWalker.html

There was a draft PR to migrate to StackWalker in #271, and there was a related previous issue in https://jira.qos.ch/browse/SLF4J-528

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @cushon

        Issue actions

          SecurityManager is deprecated for removal · Issue #445 · qos-ch/slf4j