[jira] [Updated] (JAMES-4161) Mockito is complaining during build about self-attaching
"Matthieu Baechler (Jira)" <[email protected]>
| Newsgroups | gmane.comp.jakarta.james.devel |
|---|---|
| Message-ID | <[email protected]> |
[ https://issues.apache.org/jira/browse/JAMES-4161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthieu Baechler updated JAMES-4161:
-------------------------------------
Issue Type: Improvement (was: Bug)
> Mockito is complaining during build about self-attaching
> --------------------------------------------------------
>
> Key: JAMES-4161
> URL: https://issues.apache.org/jira/browse/JAMES-4161
> Project: James Server
> Issue Type: Improvement
> Affects Versions: master
> Reporter: Matthieu Baechler
> Priority: Minor
>
> During build, we get this warning from 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/matthieu/.m2/repository/net/bytebuddy/byte-buddy-agent/1.17.5/byte-buddy-agent-1.17.5.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}
> We should apply the documentation advices
--
This message was sent by Atlassian Jira
(v8.20.10#820010)