experiment: lower compile target to JDK 22 (test 22 + 25)#47
Closed
dfa1 wants to merge 1 commit into
Closed
Conversation
FFM (java.lang.foreign) went stable in JDK 22 (JEP 454), so the project may not actually need a JDK 25 floor. Drop maven.compiler.release 25 -> 22 and run the CI build matrix on both 22 and 25 to find out. If 22 is green, the supported floor can drop, widening the addressable audience substantially (most prod JVMs are on 17/21, not 25). Experiment only — not for merge as-is; report-driven. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Owner
Author
|
Experiment concluded: JDK 22 fails only on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Experiment — not for merge as-is. Tests whether the project builds + passes on JDK 22 (first stable FFM, JEP 454) as well as 25, to decide if the supported floor can drop from 25.
Changes
maven.compiler.release25 → 22 (root pom: property + compiler + javadoc<release>)ci.ymlbuild job → matrixjava: ['22', '25']Why it matters
Most production JVMs run 17/21, not 25. If 22 is green, dropping the floor widens the addressable audience massively — the #1 adoption lever discussed for promotion.
What to watch in the run
--release 22enforces this)failOnWarning+-Xlint:allmay surface 22-specific warningsReport-driven: I'll summarize per-leg results.
🤖 Generated with Claude Code