[
https://issues.apache.org/jira/browse/CAMEL-22551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pasquale Congiusti closed CAMEL-22551.
--------------------------------------
Resolution: Fixed
> [build] Mockito agent setting
> -----------------------------
>
> Key: CAMEL-22551
> URL: https://issues.apache.org/jira/browse/CAMEL-22551
> Project: Camel
> Issue Type: Task
> Reporter: Pasquale Congiusti
> Priority: Minor
> Labels: good-first-issue, help-wanted
>
> This is marked for removal in future java versions. Let's tackle it
> proactively following the intructions provided by Mockito.
> {code}
> 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 as described in Mockito's documentation:
> https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#0.3
> OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader
> classes because bootstrap classpath has been appended
> WARNING: A Java agent has been loaded dynamically
> (/home/jenkins/.m2/repository/net/bytebuddy/byte-buddy-agent/1.17.8/byte-buddy-agent-1.17.8.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
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)