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 #23

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

SecurityManager is deprecated for removal #23

cushon opened this issue Dec 6, 2024 · 0 comments

Comments

@cushon
Copy link

cushon commented Dec 6, 2024

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

It is used in this project for SecurityManager#getClassContext:

return getClassContext()[callStackDepth + 1];

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

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

No branches or pull requests

1 participant