linghengqian opened a new issue, #36641:
URL: https://github.com/apache/shardingsphere/issues/36641

   ## 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/b2d40b1e4a94c33abbde26513f600436c108a316
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   - `ShardingSphere-JDBC`
   
   ### Expected behavior
   
   - shardingsphere builds successfully on OpenJDK 25.
   
   ### Actual behavior
   
   - shardingsphere's master branch fails to build on OpenJDK 25.
   
   ```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               : 25                                                      
                                                                                
           
   JVM vendor name    : GraalVM Community                                       
                                                                                
           
   JVM vendor version : 25+37-jvmci-b01                                         
                                                                                
           
   JVM name           : OpenJDK 64-Bit Server VM                                
                                                                                
           
   JVM version        : 25+37-jvmci-b01                                         
                                                                                
           
   JVM info           : mixed mode, sharing                                     
                                                                                
           
   OS name            : Windows 11                                              
                                                                                
           
   OS version         : 10.0                                                    
                                                                                
           
                                                                                
                                                                                
           
                                                                                
                                                                                
           
   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)
   
   - Strongly related to byte buddy.
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   - Take Windows 11 as an example. It is assumed that `Git.Git` is configured, 
and `version-fox.vfox`, `PowerShell/PowerShell` and `Rancher Desktop` are 
installed.
   
   ```shell
   vfox add java
   vfox install java@25-graalce
   vfox use --global java@25-graalce
   git clone [email protected]: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).
   
   - Maybe not, earlier investigation came from 
https://github.com/apache/shardingsphere/issues/35052 .
   


-- 
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]

Reply via email to