KAFKA-18356 Explicitly setting up instrumentation for inline mocking (Java 21+)
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. 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
Test in my local
trunk:
this branch:
Committer Checklist (excluded from commit message)
- [ ] Verify design and implementation
- [ ] Verify test coverage and CI build status
- [ ] Verify documentation (including upgrade notes)
@m1a2st any update?
Test in my local
This branch:
Main:
@chia7712 @ijuma Do you want to take another look or have other comments?
No need to wait for my review @mimaison. Thanks.