Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 921398

Summary: dev-java/junit-5.9.2 fails to build with openjdk-21: TestIdentifier.java:320: error: unreported exception ClassNotFoundException; must be caught or declared to be thrown
Product: Gentoo Linux Reporter: Ulf Norberg <ulf.norberg>
Component: Current packagesAssignee: Java team <java>
Status: IN_PROGRESS ---    
Severity: normal CC: ago, gentoo, jstein, leonchik1976
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/35482
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 929985    
Bug Blocks: 916396    

Description Ulf Norberg 2024-01-05 15:27:26 UTC
With "eselect java-vm set system openjdk-17" it build fine, but not with openjdk-21. Seems to be identical to <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053040>.  Same build problem with junit-5.10.1.  I tested the patch below with junit-5-10-1 and it builds fine.
<https://salsa.debian.org/java-team/junit5/-/blob/ef95f48bb281bdf056f188ad8b3139ad49659f8c/debian/patches/18-java-compatibility.patch>
Comment 1 Volkmar W. Pogatzki 2024-01-24 11:58:31 UTC
*** Bug 922813 has been marked as a duplicate of this bug. ***
Comment 2 Larry the Git Cow gentoo-dev 2024-04-14 07:49:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bca8e639d888d263534446790b20da091112e090

commit bca8e639d888d263534446790b20da091112e090
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2024-04-06 17:42:01 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-04-14 07:49:50 +0000

    dev-java/junit: add 5.10.2
    
    Bug: https://bugs.gentoo.org/921398
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/35482/commits/e658e37a9d867d0ec23aba3b63ba849842cd9649
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 dev-java/junit/Manifest            |   2 +
 dev-java/junit/junit-5.10.2.ebuild | 351 +++++++++++++++++++++++++++++++++++++
 2 files changed, 353 insertions(+)