Skip to content

Resolve Java 21 FTBFS

Vladimir Petko requested to merge vpa1977/junit5:master into master

This MR fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053040

Upstream gradle build sets release level to 9 (17) and this allows TestIdentifier.java to compile. Debian builds with the maven patch without setting the compiler release level and building with Java 21 fails due to the updated method ObjectInputStream.GetField.get(String, Object) that now throws ClassNotFoundException.

Changes:

  • Catch and rethrow exception

Alternative:

  • adjust project compiler release levels in line with upstream. This might introduce a regression with the package dependencies.

Testing:

  • build in sid chroot with default Java 21
  • build in sid chroot

Merge request reports

Loading