Skip to content

[Feature Request] Update minimum compile/runtime versions to JDK25 #21174

@Bukhtawar

Description

@Bukhtawar

Is your feature request related to a problem? Please describe

We want newer plugins(starting sandbox) to build with JDK-25 as we need Java to interact with Rust-native dependencies using FFM which has a stable API release in JDK-22JEP-454 and additionally optimises on GC performance with G1 region pinning espl with JNI interactionsJEP-423.
Similarly virtual‑thread synchronization without pinning gets unlocked which allows to scale well with virtual threads without needing to avoid synchronized blocks (JEP 491). I feel we might need these capabilities on core as well, sooner for performance enhancements.

Other significant performance change : JEP-519 Experiments show compact object headers boost performance—reducing heap/CPU use, garbage collections, and parsing time

Describe the solution you'd like

Since JDK-25 is the LTS version(reached General Availability on 16 September 2025), we want to ensure all newer development is able to utilise virtual thread and FFM capabilities sooner. So, while we updated the bundled JDK to have JDK25 #19314 we need to ensure minimum compiler and runtime capabilities also get bumped to JDK25.

Related component

Build

Describe alternatives you've considered

Have a separate CI for sandbox plugins to use JDK 25 as minimum compile time version as proposed in #21156

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BuildBuild Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement.enhancementEnhancement or improvement to existing feature or requestuntriaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions