Skip to content

Commit 1c6c819

Browse files
committed
Fix test build on Java 8
1 parent d787e4d commit 1c6c819

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pom.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@
399399
<excludes>
400400
<exclude>**/*TestSuite.java</exclude>
401401
</excludes>
402-
<argLine>-XX:+EnableDynamicAgentLoading</argLine>
402+
<argLine>${test-arguments}</argLine>
403403
<systemPropertyVariables>
404404
<net.bytebuddy.experimental>true</net.bytebuddy.experimental>
405405
<rabbitmqctl.bin>DOCKER:rabbitmq</rabbitmqctl.bin>
@@ -868,6 +868,15 @@
868868
<mockito.version>4.11.0</mockito.version>
869869
</properties>
870870
</profile>
871+
<profile>
872+
<id>jvm-test-arguments-java-21-and-more</id>
873+
<activation>
874+
<jdk>[21,)</jdk>
875+
</activation>
876+
<properties>
877+
<test-arguments>-XX:+EnableDynamicAgentLoading</test-arguments>
878+
</properties>
879+
</profile>
871880

872881
<profile>
873882
<id>extensions</id>

0 commit comments

Comments
 (0)