[
https://issues.apache.org/jira/browse/NIFI-15999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Stieglitz updated NIFI-15999:
------------------------------------
Description:
When building the nifi-api the the warning below appears. Ideally we should not
have this. This ticket is meant to determine whether we can use the Mockito
suggestion in their documentation to remove this.
{code:java}
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.nifi.components.TestPropertyDescriptor
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
WARNING: A Java agent has been loaded dynamically
(/.m2/repository/net/bytebuddy/byte-buddy-agent/1.17.7/byte-buddy-agent-1.17.7.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
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader
classes because bootstrap classpath has been appended{code}
was:
When building the nifi-api the the warning below appears. Ideally we should not
have this. This ticket is meant to determine whether we can use the Mockito
suggestion in their documentation to remove this.
{code:java}
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.nifi.components.TestPropertyDescriptor
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
WARNING: A Java agent has been loaded dynamically
(/home/dystieg/.m2/repository/net/bytebuddy/byte-buddy-agent/1.17.7/byte-buddy-agent-1.17.7.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
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader
classes because bootstrap classpath has been appended{code}
> Mockito warning when running build
> ----------------------------------
>
> Key: NIFI-15999
> URL: https://issues.apache.org/jira/browse/NIFI-15999
> Project: Apache NiFi
> Issue Type: Improvement
> Components: NiFi API
> Reporter: Daniel Stieglitz
> Priority: Minor
>
> When building the nifi-api the the warning below appears. Ideally we should
> not have this. This ticket is meant to determine whether we can use the
> Mockito suggestion in their documentation to remove this.
> {code:java}
> [INFO] T E S T S
> [INFO] -------------------------------------------------------
> [INFO] Running org.apache.nifi.components.TestPropertyDescriptor
> 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
> WARNING: A Java agent has been loaded dynamically
> (/.m2/repository/net/bytebuddy/byte-buddy-agent/1.17.7/byte-buddy-agent-1.17.7.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
> OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader
> classes because bootstrap classpath has been appended{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)