cxf icon indicating copy to clipboard operation
cxf copied to clipboard

CXF-9183 Java 21+ required to build CXF after CXF-8828: Support Jakarta EE 11

Open ppalaga opened this issue 1 month ago • 6 comments

https://issues.apache.org/jira/browse/CXF-9183

ppalaga avatar Nov 24 '25 08:11 ppalaga

The CI failure does not seem to be related to this PR. @ffang or anybody else, could you please restart the failing job?

ppalaga avatar Nov 24 '25 10:11 ppalaga

@ppalaga I normally just rebase PRs to re-start the jobs. One thing I noticed locally with jDK17 is that Derby as a test dependency in cxf-rt-ws-rm needs JDK 21, so we'll need to update surefire for that module to only run certain tests depending on the JDK version

coheigea avatar Nov 24 '25 10:11 coheigea

@ppalaga the change to use JDK-21 is intentional, see please [1] for discussion here, the original plan for 4.2.x (main) was to be on JDK-21 baseline.

[1] https://lists.apache.org/thread/8q8jrgdkgqys4fhgwyxsj2hjt171m114

reta avatar Nov 24 '25 11:11 reta

Following up on the possible options, I think we could cleanly support 17 and 21, @ppalaga do you mind if I push a change to your pull request? (or I could open a separate one, but you did a good chunk of work here, thank you)

reta avatar Nov 24 '25 22:11 reta

Fixed by https://github.com/apache/cxf/pull/2754

reta avatar Nov 25 '25 21:11 reta

@reta I apologize, I got distracted by other tasks. Thanks a lot, #2754 works great, our jobs testing against main are all green again!

ppalaga avatar Nov 26 '25 15:11 ppalaga