Skip to content

[SPARK-56087] Use Java 26 toolchain while supporting Java 17+#554

Closed
dongjoon-hyun wants to merge 1 commit intoapache:mainfrom
dongjoon-hyun:SPARK-56087
Closed

[SPARK-56087] Use Java 26 toolchain while supporting Java 17+#554
dongjoon-hyun wants to merge 1 commit intoapache:mainfrom
dongjoon-hyun:SPARK-56087

Conversation

@dongjoon-hyun
Copy link
Member

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)

@dongjoon-hyun dongjoon-hyun added this to the 0.9.0 milestone Mar 19, 2026
@dongjoon-hyun
Copy link
Member Author

Thank you, @viirya !

@dongjoon-hyun
Copy link
Member Author

Merged to main

@dongjoon-hyun dongjoon-hyun deleted the SPARK-56087 branch March 19, 2026 22:20
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>
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