You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "linghengqian (via GitHub)" <gi...@apache.org> on 2026/01/29 04:56:13 UTC

[I] Change the minimum JDK version for compiling the project from JDK 11 to JDK 21 [shardingsphere]

linghengqian opened a new issue, #37884:
URL: https://github.com/apache/shardingsphere/issues/37884

   ## 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 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.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Change the minimum JDK version for compiling the project from JDK 11 to JDK 21 [shardingsphere]

Posted by "karuppuchamysuresh (via GitHub)" <gi...@apache.org>.
karuppuchamysuresh commented on issue #37884:
URL: https://github.com/apache/shardingsphere/issues/37884#issuecomment-3907078890

   Sorry! My account was suspended(I didn't do anything wrong, not sure about the reason), and just got my access back, looking into this


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Change the minimum JDK version for compiling the project from JDK 11 to JDK 21 [shardingsphere]

Posted by "karuppuchamysuresh (via GitHub)" <gi...@apache.org>.
karuppuchamysuresh commented on issue #37884:
URL: https://github.com/apache/shardingsphere/issues/37884#issuecomment-3832965601

   I’m interested in taking this up. I’ll look into the required changes and share my findings shortly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Change the minimum JDK version for compiling the project from JDK 11 to JDK 21 [shardingsphere]

Posted by "linghengqian (via GitHub)" <gi...@apache.org>.
linghengqian commented on issue #37884:
URL: https://github.com/apache/shardingsphere/issues/37884#issuecomment-4381535207

   > Sorry! My account was suspended(I didn't do anything wrong, not sure about the reason), and just got my access back, looking into this
   
   If you don't plan to submit a new PR, I'll take over. The current issue is blocking the resolution of another one.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Change the minimum JDK version for compiling the project from JDK 11 to JDK 21 [shardingsphere]

Posted by "linghengqian (via GitHub)" <gi...@apache.org>.
linghengqian commented on issue #37884:
URL: https://github.com/apache/shardingsphere/issues/37884#issuecomment-3860978007

   @karuppuchamysuresh So, why did you delete your GitHub account? I don't really believe that openclaw can do account deletion.🤣
   
   ![Screenshot_2026-02-06-23-07-46-939_com.microsoft.office.outlook-edit.jpg](https://github.com/user-attachments/assets/a32284d5-c9aa-4942-bfc0-2b5903c078da)
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Change the minimum JDK version for compiling the project from JDK 11 to JDK 21 [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #37884: Change the minimum JDK version for compiling the project from JDK 11 to JDK 21
URL: https://github.com/apache/shardingsphere/issues/37884


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Change the minimum JDK version for compiling the project from JDK 11 to JDK 21 [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on issue #37884:
URL: https://github.com/apache/shardingsphere/issues/37884#issuecomment-3817091329

   Yes, you can compile with JDK 21 and still support JDK 8 runtime, as long as:
         - Core/published modules keep maven.compiler.release=8 (or equivalent).
         - Runtime dependencies of those published artifacts remain Java 8–compatible; do not upgrade to Java 17/21–only libs (e.g., Hive 4.2.0) unless you explicitly accept raising the runtime baseline or isolate them away from core runtime consumers.
   
   Action for maintainers: When raising the compile baseline, audit dependency closures to ensure no Java 17/21–only runtime jars leak into shardingsphere-jdbc or Proxy distributions unless the project is ready to raise the runtime baseline.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Change the minimum JDK version for compiling the project from JDK 11 to JDK 21 [shardingsphere]

Posted by "karuppuchamysuresh (via GitHub)" <gi...@apache.org>.
karuppuchamysuresh commented on issue #37884:
URL: https://github.com/apache/shardingsphere/issues/37884#issuecomment-4384785966

   > > Sorry! My account was suspended(I didn't do anything wrong, not sure about the reason), and just got my access back, looking into this
   > 
   > If you don't plan to submit a new PR, I'll take over. The current issue is blocking the resolution of another one.
   
   @linghengqian Please go ahead


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org