linghengqian opened a new issue, #30552: URL: https://github.com/apache/shardingsphere/issues/30552
## 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/2b38d67330a7e2bf73eaa2efc930f35f4a2e4de2 ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? - `ShardingSphere-JDBC` ### Expected behavior - ShardingSphere build succeeds on OpenJDK 22. ### Actual behavior - ShardingSphere build fails on OpenJDK 22. ```shell [ERROR] Failures: [ERROR] AgentBuilderFactoryTest.assertAdviceConstructor:79 Expected: is <[on constructor, foo constructor, bar constructor]> but: was <[on constructor]> [ERROR] AgentBuilderFactoryTest.assertAdviceInstanceMethod:86 Expected: is <[foo before instance method, bar before instance method, on instance method, foo after instance method, bar after instance method]> but: was <[on instance method]> [ERROR] AgentBuilderFactoryTest.assertAdviceInstanceMethodWhenExceptionThrown:96 Expected: is <[foo before instance method, bar before instance method, foo throw instance method exception, bar throw instance method exception, foo after instance method, bar after instance method]> but: was <[]> [ERROR] AgentBuilderFactoryTest.assertAdviceStaticMethod:104 Expected: is <[foo before static method, bar before static method, on static method, foo after static method, bar after static method]> but: was <[on static method]> [ERROR] AgentBuilderFactoryTest.assertAdviceStaticMethodWhenExceptionThrown:114 Expected: is <[foo before static method, bar before static method, foo throw static method exception, bar throw static method exception, foo after static method, bar after static method]> but: was <[]> [ERROR] Errors: [ERROR] PluginLifecycleServiceManagerTest.assertInitPluginLifecycleServiceWithMockHandler:53 Mockito Mockito cannot mock this class: interface java.net.URLStreamHandlerFactory. If you're not sure why you're getting this error, please open an issue on GitHub. Java : 22 JVM vendor name : Oracle Corporation JVM vendor version : 22+36-2370 JVM name : OpenJDK 64-Bit Server VM JVM version : 22+36-2370 JVM info : mixed mode, sharing OS name : Linux OS version : 5.15.146.1-microsoft-standard-WSL2 You are seeing this disclaimer because Mockito is configured to create inlined mocks. You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc. Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [interface java.net.URLStreamHandlerFactory] [INFO] [ERROR] Tests run: 26, Failures: 5, Errors: 1, Skipped: 0 [INFO] ``` ### Reason analyze (If you can) - Null. ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc. ```shell sdk install java 22-open sdk use java 22-open git clone g...@github.com:apache/shardingsphere.git cd ./shardingsphere/ ./mvnw clean install -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e ``` ### Example codes for reproduce this issue (such as a github link). - Null. -- 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.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org