linghengqian opened a new pull request, #35145:
URL: https://github.com/apache/shardingsphere/pull/35145

   For #32927 .
   
   Changes proposed in this pull request:
     - Support compiling and using ShardingSphere under OpenJDK 24.
     - This apparently avoids the exception thrown when executing `./mvnw clean 
install -Prelease -T1C -DskipTests "-Djacoco.skip=true" 
"-Dcheckstyle.skip=true" "-Drat.skip=true" "-Dmaven.javadoc.skip=true"` with 
GraalVM CE For JDK 24.
   ```shell
   WARNING: A restricted method in java.lang.System has been called
   WARNING: java.lang.System::load has been called by 
org.fusesource.jansi.internal.JansiLoader in an unnamed module 
(file:/C:/Users/lingh/.m2/wrapper/dists/apache-maven-3.9.9/977a63e90f436cd6ade95b4c0e10c20c/lib/jansi-2.4.1.jar)
   WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for 
callers in this module
   WARNING: Restricted methods will be blocked in a future release unless 
native access is enabled
   
   WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
   WARNING: sun.misc.Unsafe::objectFieldOffset has been called by 
com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper 
(file:/C:/Users/lingh/.m2/wrapper/dists/apache-maven-3.9.9/977a63e90f436cd6ade95b4c0e10c20c/lib/guava-33.2.1-jre.jar)
   WARNING: Please consider reporting this to the maintainers of class 
com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper
   WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future 
release
   
   [INFO] 
------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] 
------------------------------------------------------------------------
   [INFO] Total time:  56.259 s (Wall Clock)
   [INFO] Finished at: 2025-04-09T11:17:18+08:00
   [INFO] 
------------------------------------------------------------------------
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) 
on project shardingsphere-infra-exception-core: Fatal error compiling: 
java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTag :: 
UNKNOWN -> [Help 1]
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) 
on project shardingsphere-test-util: Fatal error compiling: 
java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTag :: 
UNKNOWN -> [Help 1]
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) 
on project shardingsphere-data-pipeline-cdc-protocol: Fatal error compiling: 
java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTag :: 
UNKNOWN -> [Help 1]
   [ERROR]
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR]
   [ERROR] For more information about the errors and possible solutions, please 
read the following articles:
   [ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
   [ERROR]
   [ERROR] After correcting the problems, you can resume the build with the 
command
   [ERROR]   mvn <args> -rf :shardingsphere-infra-exception-core
   ```
   
   ---
   
   Before committing this PR, I'm sure that I have checked the following 
options:
   - [x] My code follows the [code of 
conduct](https://shardingsphere.apache.org/community/en/involved/conduct/code/) 
of this project.
   - [x] I have self-reviewed the commit code.
   - [x] I have (or in comment I request) added corresponding labels for the 
pull request.
   - [x] I have passed maven check locally : `./mvnw clean install -B -T1C 
-Dmaven.javadoc.skip -Dmaven.jacoco.skip -e`.
   - [ ] I have made corresponding changes to the documentation.
   - [ ] I have added corresponding unit tests for my changes.
   - [x] I have updated the Release Notes of the current development version. 
For more details, see [Update Release 
Note](https://shardingsphere.apache.org/community/en/involved/contribute/contributor/)
   


-- 
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-unsubscr...@shardingsphere.apache.org

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

Reply via email to