[Bug 2054940] Re: pgpainless: fails to build from source with Java 21 due to SecurityManager UnsupportedException
Bug Watch Updater
2054940 at bugs.launchpad.net
Sun Feb 25 21:20:38 UTC 2024
** Changed in: pgpainless (Debian)
Status: Unknown => New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to java-common in Ubuntu.
https://bugs.launchpad.net/bugs/2054940
Title:
pgpainless: fails to build from source with Java 21 due to
SecurityManager UnsupportedException
Status in java-common package in Ubuntu:
New
Status in pgpainless package in Ubuntu:
New
Status in pgpainless package in Debian:
New
Bug description:
The package fails to build from source due to the exception during
tests:
JUnit
Jupiter:SignUsingPublicKeyBehaviorTest:testSignatureCreationAndVerification()
MethodSource [className =
'org.pgpainless.cli.misc.SignUsingPublicKeyBehaviorTest', methodName =
'testSignatureCreationAndVerification', methodParameterTypes = '']
=> java.lang.UnsupportedOperationException: The Security Manager is
deprecated and will be removed in a future release
java.base/java.lang.System.setSecurityManager(System.java:430)
com.ginsberg.junit.exit.SystemExitExtension.beforeEach(SystemExitExtension.java:95)
java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Suppressed: org.opentest4j.AssertionFailedError: Expected
System.exit(79) to be called, but it was not. ==> expected: <79> but was:
<null>
com.ginsberg.junit.exit.SystemExitExtension.afterEach(SystemExitExtension.java:67)
[...]
The tests need to run with -Djava.security.manager=allow for the junit
SystemExit extension to work.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/java-common/+bug/2054940/+subscriptions
More information about the foundations-bugs
mailing list