Skip to content

[SPARK-56843][BUILD] Update checkJavaVersion to ban 25.0.[0-2] properly#55840

Open
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-56843
Open

[SPARK-56843][BUILD] Update checkJavaVersion to ban 25.0.[0-2] properly#55840
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-56843

Conversation

@dongjoon-hyun
Copy link
Copy Markdown
Member

@dongjoon-hyun dongjoon-hyun commented May 13, 2026

What changes were proposed in this pull request?

Require Java 25.0.3 or later in checkJavaVersion function when building on Java 25 in order to avoid JDK-8377811

This is consistent with our documentation too.

Java 25 prior to version 25.0.3 support is deprecated as of Spark 4.2.0.

Why are the changes needed?

The current check only enforces java.minimum.version=17.0.11 and treats any JDK with a higher feature version as compatible, so early Java 25 updates (25.0.0/0.1/0.2) silently pass. Pinning Java 25 builds to 25.0.3+ avoids those updates without affecting Java 17/21 users.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Manual build with build/sbt core/compile on Java 17.0.11 and 21.x (pass), and confirmed the new error message is thrown when currentVersionFeature == 25 && currentVersionUpdate < 3.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Opus 4.7

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-56843][BUILD] Update checkJavaVersion to ban 25.0.[0-3] properly [SPARK-56843][BUILD] Update checkJavaVersion to ban 25.0.[0-2] properly May 13, 2026
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.

1 participant