Skip to content
Snippets Groups Projects

Resolve Java 21 FTBFS

Merged Vladimir Petko requested to merge vpa1977/apache-directory-server:master into master

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

Note: alternative is to provide a new upstream release (2.0.0AM27) that depends on BouncyCastle for the certificate operations rather than on internal sun.* API.

Changes:

  • use reflection to workaround internal API breakage between Java 17 and 21.
  • add missing --add-opens for sun.security.x509 (crash on startup)

Testing:

  • build in sid chroot
  • build in default Java 21 sid chroot
  • installed and started with default settings in default Java 21 sid vm and default Java 17 vm
  • ran apacheds core tests (added <argLine>-Djava.awt.headless=true -Xmx256m --add-opens=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.base/sun.security.x509=ALL-UNNAMED</argLine> to surefire plugin configuration and set -Dcheckstyle.skip=true)

Merge request reports

Merged by Tony MancillTony Mancill 1 year ago (Nov 22, 2023 9:21pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading