[SPARK-56087] Use Java 26 toolchain while supporting Java 17+#554
Closed
dongjoon-hyun wants to merge 1 commit intoapache:mainfrom
Closed
[SPARK-56087] Use Java 26 toolchain while supporting Java 17+#554dongjoon-hyun wants to merge 1 commit intoapache:mainfrom
dongjoon-hyun wants to merge 1 commit intoapache:mainfrom
Conversation
viirya
approved these changes
Mar 19, 2026
Member
Author
|
Thank you, @viirya ! |
Member
Author
|
Merged to main |
dongjoon-hyun
added a commit
that referenced
this pull request
Mar 20, 2026
### What changes were proposed in this pull request? This PR aims to support `Java 26` officially for the Apache Spark K8s Operator which has more rapid release cadence. ### Why are the changes needed? Java 26 arrived with new improvements and bug fixes. - https://blogs.oracle.com/java/the-arrival-of-java-26 | JEP | Title | |---|---| | 500 | [Prepare to Make Final Mean Final](https://openjdk.org/jeps/500) | | 504 | [Remove the Applet API](https://openjdk.org/jeps/504) | | 516 | [Ahead-of-Time Object Caching with Any GC](https://openjdk.org/jeps/516) | | 517 | [HTTP/3 for the HTTP Client API](https://openjdk.org/jeps/517) | | 522 | [G1 GC: Improve Throughput by Reducing Synchronization](https://openjdk.org/jeps/522) | | 524 | [PEM Encodings of Cryptographic Objects (Second Preview)](https://openjdk.org/jeps/524) | | 525 | [Structured Concurrency (Sixth Preview)](https://openjdk.org/jeps/525) | | 526 | [Lazy Constants (Second Preview)](https://openjdk.org/jeps/526) | | 529 | [Vector API (Eleventh Incubator)](https://openjdk.org/jeps/529) | | 530 | [Primitive Types in Patterns, instanceof, and switch (Fourth Preview)](https://openjdk.org/jeps/530) | In addition, Java 25 has a known bug like the following which will be released as 25.0.3. - [JDK-8377811 G1: Optional Evacuations may evacuate pinned objects](https://bugs.openjdk.org/browse/JDK-8377811) The Apache Spark K8s Operator is ready to support and use Java 26 based on the recent changes: - #536 - #552 - #554 ### Does this PR introduce _any_ user-facing change? Yes. The Docker image will now use Java 26 JRE as the runtime, and the documentation reflects Java 26 as a supported version. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-4-6) Closes #555 from dongjoon-hyun/SPARK-56088. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
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.
What changes were proposed in this pull request?
This PR updates the Java toolchain version to 26 in
build.gradle.Why are the changes needed?
To take advantage of Java 26 toolchain to build the Apache Spark K8s Operator project.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass the CIs with the existing tests.
Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 4.6)