linghengqian opened a new issue, #28293: URL: https://github.com/apache/shardingsphere/issues/28293
## Bug Report **For English only**, other languages will not accept. Before report a bug, make sure you have: - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues). - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview). Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will **close it**. Please answer these questions before submitting your issue. Thanks! ### Which version of ShardingSphere did you use? - https://github.com/apache/shardingsphere/commit/4563afd14d23d494f75f680c47a351cdd19893db ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? - `ShardingSphere-JDBC` ### Expected behavior - Both Adoptium and GraalVM CE have created downstream builds of OpenJDK 21, time to validate OpenJDK 21 on the ShardingSphere side. Refer to https://adoptium.net/zh-CN/blog/2023/08/early-access-builds/ and https://github.com/graalvm/graalvm-ce-dev-builds/releases/tag/23.1.0-dev-20230817_2024 . Considering that GraalVM CE 23.1.0 is only a product of OpenJDK21, it is very suitable to intervene in the investigation of ShardingSphere Proxy Native in advance. Refer to https://github.com/apache/shardingsphere/issues/21347 . - I created a small test at https://github.com/linghengqian/shardingsphere-jdk21-ea-ci-test and the results are at https://github.com/linghengqian/shardingsphere-jdk21-ea-ci-test/actions/runs/6003591784/job/16282365479 . Assume there are no errors reported for this CI. ### Actual behavior - It looks like some modules about `com.sun.tools.javac.tree.JCTree$JCImport` broke ShardingSphere builds on OpenJDK 21 EA. ```shell Error: ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project shardingsphere-test-util: Fatal error compiling: java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.javac.tree.JCTree qualid' -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project shardingsphere-test-util: Fatal error compiling at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:375) ``` ### Reason analyze (If you can) - Null. ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc. - Switch to any OpenJDK 21 downstream distribution. Execute the following command. ```shell git clone -b master https://github.com/apache/shardingsphere.git cd ./shardingsphere/ git reset --hard 4563afd14d23d494f75f680c47a351cdd19893db ./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e ``` ### Example codes for reproduce this issue (such as a github link). - https://github.com/linghengqian/shardingsphere-jdk21-ea-ci-test -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
