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

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

SecurityManager is deprecated for removal #498

cushon opened this issue Dec 13, 2024 · 0 comments

Comments

@cushon
Copy link

cushon commented Dec 13, 2024

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

It is being used in javassist for getClassContext:

public Class<?> getCallerClass() {
return getClassContext()[2];

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
Projects
None yet
Development

No branches or pull requests

1 participant