From 44b54b6cb34669977ef569fa8e24baefcdf61007 Mon Sep 17 00:00:00 2001 From: Dmitry Vyazelenko <696855+vyazelenko@users.noreply.github.com> Date: Wed, 31 Jan 2024 22:55:57 +0100 Subject: [PATCH] [Java] Use `-XX:+EnableDynamicAgentLoading` on JDK 21+. --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index c47d4dc66..21e10b8fc 100644 --- a/build.gradle +++ b/build.gradle @@ -222,7 +222,7 @@ subprojects { jvmArgs('--add-opens', 'java.base/sun.nio.ch=ALL-UNNAMED') } - if (buildJavaVersion > 21) { + if (buildJavaVersion >= 21) { jvmArgs('-XX:+EnableDynamicAgentLoading') }