Skip to content

fix(build): support building and testing under JDK 25 (current LTS)#411

Merged
gkc merged 2 commits into
trunkfrom
gkc-jdk25-support
Jul 13, 2026
Merged

fix(build): support building and testing under JDK 25 (current LTS)#411
gkc merged 2 commits into
trunkfrom
gkc-jdk25-support

Conversation

@gkc

@gkc gkc commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

- What I did
fix(build): support building and testing under JDK 25 (current LTS)

- How I did it
A clean build previously failed under modern JDKs. Run the Lombok annotation processor explicitly (JDK 23+ disabled implicit discovery), and update Spotless, JaCoCo and Mockito to JDK 25-capable versions. Compile target stays Java 11, so published artifacts are unchanged. CI now builds on temurin 25.

- How to verify it
Checks pass

A clean build previously failed under modern JDKs. Run the Lombok annotation
processor explicitly (JDK 23+ disabled implicit discovery), and update Spotless,
JaCoCo and Mockito to JDK 25-capable versions. Compile target stays Java 11, so
published artifacts are unchanged. CI now builds on temurin 25.
@gkc gkc requested a review from cpswan July 11, 2026 13:51
@gkc gkc marked this pull request as draft July 11, 2026 13:51
@gkc gkc removed the request for review from cpswan July 11, 2026 13:51
CliIT.testShareUsage trapped System.exit via SystemLambda.catchSystemExit,
which installs a Security Manager. JDK 24 permanently disabled the Security
Manager (JEP 486), so System.setSecurityManager now throws and the test failed
under JDK 25 with "Setting a Security Manager is not supported".

Run each CLI main in a subprocess and read its real exit code instead. The
usage path exits at the argument check before opening any connection, so the
fork stays fast and network-free. Production CLIs are unchanged.
@gkc gkc requested review from akafredperry and cpswan July 12, 2026 12:39
@gkc gkc marked this pull request as ready for review July 12, 2026 13:07
@gkc gkc merged commit 7eb6104 into trunk Jul 13, 2026
4 checks passed
@gkc gkc deleted the gkc-jdk25-support branch July 13, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants