linghengqian opened a new pull request, #31630:
URL: https://github.com/apache/shardingsphere/pull/31630
For #29052.
Changes proposed in this pull request:
- Bump the minimum GraalVM CE version required to compile ShardingSphere's
GraalVM Native Image artifacts to JDK22. This PR was split from #31526.
- Refactored some unit tests for better readability.
- Removed seemingly useless `java.version` modifications in Maven
Profiles, as the final product is not JDK-related. The final product is the
GraalVM Native Image.
- Remove redundant restful api detection in Etcd's nativetest, jetcd-test
has handled it internally. Refer to
https://github.com/etcd-io/jetcd/blob/jetcd-0.7.7/jetcd-launcher/src/main/java/io/etcd/jetcd/launcher/EtcdContainer.java#L131
.
- Graalvm CE for JDK22 has done adaptation to AWT. The current Graalvm CE
for JDK21 will cause GraalVM Native Image to fail when calling the `java.beans`
class inside `org.apache.hive:hive-jdbc:4.0.0`. Looking forward to the future,
we must give up the support for GraalVM CE for JDK21 at the CI. Refer to
https://github.com/apache/shardingsphere/actions/runs/9400655917/job/25891420527?pr=31526
.
```shell
com.sun.beans.introspect.ClassInfo was unintentionally initialized at build
time. To see why com.sun.beans.introspect.ClassInfo got initialized use
--trace-class-initialization=com.sun.beans.introspect.ClassInfo
java.beans.Introspector was unintentionally initialized at build time. To
see why java.beans.Introspector got initialized use
--trace-class-initialization=java.beans.Introspector
com.sun.beans.util.Cache$Kind$2 was unintentionally initialized at build
time. To see why com.sun.beans.util.Cache$Kind$2 got initialized use
--trace-class-initialization=com.sun.beans.util.Cache$Kind$2
com.sun.beans.TypeResolver was unintentionally initialized at build time. To
see why com.sun.beans.TypeResolver got initialized use
--trace-class-initialization=com.sun.beans.TypeResolver
java.beans.ThreadGroupContext was unintentionally initialized at build time.
To see why java.beans.ThreadGroupContext got initialized use
--trace-class-initialization=java.beans.ThreadGroupContext
com.sun.beans.util.Cache$Kind was unintentionally initialized at build time.
To see why com.sun.beans.util.Cache$Kind got initialized use
--trace-class-initialization=com.sun.beans.util.Cache$Kind
com.sun.beans.introspect.MethodInfo was unintentionally initialized at build
time. To see why com.sun.beans.introspect.MethodInfo got initialized use
--trace-class-initialization=com.sun.beans.introspect.MethodInfo
com.sun.beans.util.Cache$Kind$1 was unintentionally initialized at build
time. To see why com.sun.beans.util.Cache$Kind$1 got initialized use
--trace-class-initialization=com.sun.beans.util.Cache$Kind$1
com.sun.beans.util.Cache$Kind$3 was unintentionally initialized at build
time. To see why com.sun.beans.util.Cache$Kind$3 got initialized use
--trace-class-initialization=com.sun.beans.util.Cache$Kind$3
To see how the classes got initialized, use
--trace-class-initialization=org.codehaus.groovy.reflection.CachedClass,org.codehaus.groovy.reflection.CachedClass$2,org.codehaus.groovy.util.ReferenceBundle,org.codehaus.groovy.reflection.stdclasses.StringCachedClass,org.codehaus.groovy.reflection.stdclasses.ArrayCachedClass,org.codehaus.groovy.runtime.dgmimpl.NumberNumberMinus,org.codehaus.groovy.runtime.DefaultGroovyMethods,org.apache.groovy.plugin.GroovyRunnerRegistry,org.codehaus.groovy.runtime.dgmimpl.arrays.FloatArrayPutAtMetaMethod,org.codehaus.groovy.reflection.ReflectionCache,org.codehaus.groovy.runtime.dgmimpl.arrays.LongArrayPutAtMetaMethod,com.sun.beans.introspect.ClassInfo,org.codehaus.groovy.runtime.dgmimpl.arrays.ArrayGetAtMetaMethod,org.codehaus.groovy.util.LazyReference,org.codehaus.groovy.runtime.GroovyCategorySupport,groovy.lang.MetaClassImpl,org.codehaus.groovy.reflection.stdclasses.ObjectCachedClass,org.codehaus.groovy.runtime.dgmimpl.arrays.DoubleArrayGetAtMetaMeth
od,org.codehaus.groovy.util.R
```
---
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`.
- [x] I have made corresponding changes to the documentation.
- [x] I have added corresponding unit tests for my changes.
--
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]