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

Added a warning about Security Manager deprecation and handle exception in Java 17+ (closes #286) #301

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

keeganwitt
Copy link
Member

@keeganwitt keeganwitt commented Feb 26, 2024

When using a newer Java (such as Java 21), throws an UnsupportedOperationException when attempting to call System.setSecurityManager when java.security.manager isn't set to allow, we make the allowSystemExit option a no-op and print a better error message.

In addition, we print a warning about allowSystemExit being deprecated.

@keeganwitt keeganwitt force-pushed the handle-security-manager-deprecation branch 3 times, most recently from be834c7 to e7afddb Compare February 26, 2024 20:35
@keeganwitt keeganwitt force-pushed the handle-security-manager-deprecation branch from e7afddb to bebc06d Compare February 26, 2024 20:57
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

Successfully merging this pull request may close these issues.

None yet

1 participant