Bug#1052571: junit: FTBFS with OpenJDK 21 due to unsupported javac source/target level 7
Emmanuel Bourg
ebourg at apache.org
Sun Sep 24 22:17:47 BST 2023
Package: junit
Version: 3.8.2-9
Severity: important
Tags: ftbfs sid trixie
User: debian-java at lists.debian.org
Usertags: default-java21
junit fails to build with OpenJDK 21 because it invokes javac with the source/target
options set to 7. Since OpenJDK 20 the minimum version supported is 8.
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdir -p classes
(cd src;/usr/lib/jvm/default-java/bin/javac -source 1.7 -target 1.7 -classpath . -d ../classes junit/*/*.java)
warning: [options] bootstrap class path not set in conjunction with -source 7
error: Source option 7 is no longer supported. Use 8 or later.
error: Target option 7 is no longer supported. Use 8 or later.
make[1]: *** [debian/rules:22: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:15: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
More information about the pkg-java-maintainers
mailing list