Package: junit
Version: 3.8.2-9
Severity: important
Tags: ftbfs sid trixie
User: debian-j...@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

Reply via email to