@@ -256,6 +256,20 @@ file comparators, endian transformation classes, and much more.
256256 <version >1.9.1</version >
257257 <scope >test</scope >
258258 </dependency >
259+ <dependency >
260+ <!-- Java 21 support, revisit for Mockito 5 -->
261+ <groupId >net.bytebuddy</groupId >
262+ <artifactId >byte-buddy</artifactId >
263+ <version >${commons.bytebuddy.version} </version >
264+ <scope >test</scope >
265+ </dependency >
266+ <dependency >
267+ <!-- Java 21 support, revisit for Mockito 5 -->
268+ <groupId >net.bytebuddy</groupId >
269+ <artifactId >byte-buddy-agent</artifactId >
270+ <version >${commons.bytebuddy.version} </version >
271+ <scope >test</scope >
272+ </dependency >
259273 <dependency >
260274 <groupId >org.mockito</groupId >
261275 <artifactId >mockito-inline</artifactId >
@@ -325,6 +339,7 @@ file comparators, endian transformation classes, and much more.
325339 <commons .javadoc.java.link>${commons.javadoc8.java.link} </commons .javadoc.java.link>
326340 <commons .moditect.version>1.0.0.Final</commons .moditect.version>
327341 <jmh .version>1.37</jmh .version>
342+ <commons .bytebuddy.version>1.14.9</commons .bytebuddy.version>
328343 <japicmp .skip>false</japicmp .skip>
329344 <jacoco .skip>${env.JACOCO_SKIP} </jacoco .skip>
330345 <commons .release.isDistModule>true</commons .release.isDistModule>
@@ -387,7 +402,8 @@ file comparators, endian transformation classes, and much more.
387402 </classpathDependencyExcludes >
388403 <forkCount >1</forkCount >
389404 <reuseForks >false</reuseForks >
390- <!-- limit memory size see IO-161 -->
405+ <!-- Limit memory size see IO-161 -->
406+ <!-- Mockito inline may need -XX:+EnableDynamicAgentLoading -->
391407 <argLine >${argLine} -Xmx25M</argLine >
392408 <includes >
393409 <!-- Only include test classes, not test data -->
0 commit comments