Public bug reported:

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.

** Affects: java-common (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: pgpainless (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: pgpainless (Debian)
     Importance: Unknown
         Status: Unknown


** Tags: update-excuse

** Also affects: java-common (Ubuntu)
   Importance: Undecided
       Status: New

** Bug watch added: Debian Bug tracker #1064780
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064780

** Also affects: pgpainless (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064780
   Importance: Unknown
       Status: Unknown

** Tags added: update-excuse

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2054940

Title:
  pgpainless: fails to build from source with Java 21 due to
  SecurityManager UnsupportedException

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/java-common/+bug/2054940/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to