Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921398 - 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
Summary: dev-java/junit-5.9.2 fails to build with openjdk-21: TestIdentifier.java:320:...
Status: IN_PROGRESS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
: 922813 (view as bug list)
Depends on: 929985
Blocks: jdk21
  Show dependency tree
 
Reported: 2024-01-05 15:27 UTC by Ulf Norberg
Modified: 2024-04-14 08:05 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(+)