← All tasks
javaapache/shardingsphere #37884Not a task: not reproduced

Change the minimum JDK version for compiling the project from JDK 11 to JDK 21

envgap__apache__shardingsphere-37884

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
bd48f5204c8bbfcb87f7e52fd8d39f8457946520
Manifest
pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

apache/shardingsphere #37884 · read the original issue
## Feature Request

**For English only**, other languages will not be accepted.

Please pay attention on issues you submitted, because we maybe need more details. 
If no response anymore and we cannot make decision by current information, we will **close it**.

Please answer these questions before submitting your issue. Thanks!

### Is your feature request related to a problem?

- See https://github.com/apache/shardingsphere/issues/26041 and https://github.com/apache/shardingsphere/issues/35052 .

### Describe the feature you would like.

- I want to change the minimum JDK version for compiling projects from JDK 11 to JDK 21. There has been more than one issue exposing the drawbacks of using JDK 11.
  -  The solution to https://github.com/apache/shardingsphere/issues/26041 requires using `org.eclipse.transformer:transformer-maven-plugin:1.0.0`, which only supports JDK 17+.
  - All integration tests related to HiveServer2 are locked to `apache/hive:4.0.1` because the minimum JDK runtime for `HiveServer2 JDBC Driver 4.1.0` is JDK 17, and the minimum JDK runtime for `HiveServer2 JDBC Driver 4.2.0` is JDK 21. The minimum JDK runtime for `HiveServer2 JDBC Driver 4.3.0-SNAPSHOT` will be changed to JDK 25 in the next few months. See https://lists.apache.org/thread/033sb2n0pmy333szs2qbgpndznnnfr9v . If we continue to use an older version of the HiveServer2 JDBC Driver in our integration tests, we will be unable to test local transaction support for HiveServer2 on Iceberg v4 tables. It's only a matter of time before https://github.com/apache/iceberg/pull/6948 is merged.

- The current issue does not require changes to runtime requirements, only compile-time requirements. Unit tests will still run on JDK 8, and artifacts published to the Maven Central Repository will still run on JDK 8. This means that email threads like https://lists.apache.org/thread/kgtfx5vnw73o61lkvdshyfvjfvvzk3js are unnecessary.
- It is not possible to use JDK25 for all modules at the moment. `org.apache.shardingsphere:shardingsphere-test-native` still depends on GraalVM CE for JDK 24. This matter is related to a bug in OpenJDK. See https://github.com/openjdk/jdk/pull/22606 .
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]