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

Java 17 + JEP 411: Security Manager is deprecated and should not be used anymore #360

Closed
sephiroth-j opened this issue Sep 29, 2021 · 1 comment

Comments

@sephiroth-j
Copy link

Building a project with spotbugs-maven-plugin v4.4.1 emits the following warning due to JEP 411. With Java 18, System::setSecurityManager will throw an UnsupportedOperationException!

Starting in Java 18, the default value of java.security.manager will be disallow if not otherwise set via java -D.... As a result, applications and libraries that call System::setSecurityManager may fail due to an unexpected UnsupportedOperationException.

Warning from Java

     [java] WARNING: A terminally deprecated method in java.lang.System has been called
     [java] WARNING: System::setSecurityManager has been called by edu.umd.cs.findbugs.ba.jsr305.TypeQualifierValue (file:/C:/Users/XXX/.m2/repository/com/github/spotbugs/spotbugs/4.4.1/spotbugs-4.4.1.jar)
     [java] WARNING: Please consider reporting this to the maintainers of edu.umd.cs.findbugs.ba.jsr305.TypeQualifierValue
     [java] WARNING: System::setSecurityManager will be removed in a future release
@sephiroth-j
Copy link
Author

sephiroth-j commented Sep 29, 2021

My bad, wrong repo and it is already open in spotbugs/spotbugs/issues/1579

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