m1a2st opened a new pull request, #18339:
URL: https://github.com/apache/kafka/pull/18339

   Jira: https://issues.apache.org/jira/browse/KAFKA-18356
   
   Starting from Java 21, the [JDK restricts the ability of libraries to attach 
a Java agent to their own JVM](https://openjdk.org/jeps/451). As a result, the 
inline-mock-maker might not be able to function without an explicit setup to 
enable instrumentation, and the JVM will always display a warning.
   
   The mockito 
[document](https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#mockito-instrumentation)
   
   Test in my local
   trunk: 
   ![CleanShot 2024-12-28 at 22 01 
17@2x](https://github.com/user-attachments/assets/3a15dd62-f79e-4fec-9810-53f37667da1b)
   
   this branch:
   ![CleanShot 2024-12-28 at 22 00 
15@2x](https://github.com/user-attachments/assets/0d352435-f907-4f79-9be8-1c54db6b9d08)
   
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
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: jira-unsubscr...@kafka.apache.org

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

Reply via email to