Skip to content

Commit 546741a

Browse files
authored
Update pom.xml to force allow dynamic agent loading in tests
Signed-off-by: Ashley <73482956+ascopes@users.noreply.github.com>
1 parent bc02654 commit 546741a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@
130130
131131
Byte Buddy experimental support enables running ByteBuddy (used by Mockito) in JDK
132132
experimental builds.
133+
134+
We force enable dynamic agent loading to remove warnings in Java 22 and onwards about
135+
ByteBuddy injecting itself as an agent, as this will eventually be deprecated
136+
behaviour.
133137
-->
134138
<argLine>
135139
-DmvnArgLinePropagated=true
@@ -139,6 +143,7 @@
139143
-Xshare:off
140144
-XX:+TieredCompilation
141145
-XX:TieredStopAtLevel=1
146+
-XX:+EnableDynamicAgentLoading
142147
</argLine>
143148

144149
<!-- Project flags -->

0 commit comments

Comments
 (0)