Chirag Wadhwa created KAFKA-19010: ------------------------------------- Summary: Modify some JVM arguments to add the Mockito agent to the junit runtime Key: KAFKA-19010 URL: https://issues.apache.org/jira/browse/KAFKA-19010 Project: Kafka Issue Type: Task Reporter: Chirag Wadhwa
Some tests in Kafka builds fails and outputs the following - *Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build what is described in Mockito's documentation: [https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#0.3] WARNING: A Java agent has been loaded dynamically (/home/runner/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy-agent/1.15.4/58e850dde88f3cf20f41f659440bef33f6c4fe02/byte-buddy-agent-1.15.4.jar) WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information WARNING: Dynamic loading of agents will be disallowed by default in a future release* Adding the Mockito agent to Junit runtime might resolve it. -- This message was sent by Atlassian Jira (v8.20.10#820010)