Resolve Java 21 FTBFS
This MR resolves 1057511.
Changes:
- cherry-pick upstream patches to resolve Java 21 ftbfs
Testing:
- rebuild in sid chroot
- rebuild in Java 21 default sid chroot
- rebuild openjdk-11 to run jtreg tests with the test patch applied
--------------- jtreg console summary for hotspot ---------------
FAILED: serviceability/sa/ClhsdbCDSCore.java
Test results: passed: 1,958; failed: 1
Warning: unable to find hs_err log for serviceability/sa/ClhsdbCDSCore.jtr
FAILED: serviceability/sa/ClhsdbCDSCore.java
Test results: failed: 1
Warning: unable to find hs_err log for serviceability/sa/ClhsdbCDSCore.jtr
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
--------------- jtreg console summary for langtools ---------------
Test results: passed: 3,928
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
Unable to compare jtreg results: no build jtreport found for hotspot/amd64.
Reason: '/usr/share/doc/openjdk-11-jre-headless//test-amd64/jtreport-hotspot.tar.gz' does not exist.
--------------- jtreg console summary for jaxp ---------------
Test results: passed: 443
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
Unable to compare jtreg results: no build jtreport found for hotspot/amd64.
Reason: '/usr/share/doc/openjdk-11-jre-headless//test-amd64/jtreport-hotspot.tar.gz' does not exist.
--------------- jtreg console summary for jdk ---------------
Test results: passed: 5,364
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
Note: serviceability/sa/ClhsdbCDSCore.java is an existing failure.
Edited by Vladimir Petko