Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShardingSphere fails to build on OpenJDK 21 EA #28293

Closed
linghengqian opened this issue Aug 28, 2023 · 2 comments · Fixed by #28326
Closed

ShardingSphere fails to build on OpenJDK 21 EA #28293

linghengqian opened this issue Aug 28, 2023 · 2 comments · Fixed by #28326

Comments

@linghengqian
Copy link
Member

linghengqian commented Aug 28, 2023

Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

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?

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

  • ShardingSphere-JDBC

Expected behavior

Actual behavior

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

@linghengqian
Copy link
Member Author

@linghengqian
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant