Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecurityManager is deprecated for removal #445

Open
cushon opened this issue Dec 10, 2024 · 0 comments
Open

SecurityManager is deprecated for removal #445

cushon opened this issue Dec 10, 2024 · 0 comments

Comments

@cushon
Copy link

cushon commented Dec 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant