dubbo: fix stacktraces in test output on jdk17
MODIFY
instrumentation/apache-dubbo-2.7/javaagent/build.gradle.kts
instrumentation/apache-dubbo-2.7/javaagent/build.gradle.kts
@@ -21,3 +21,9 @@ dependencies {
latestDepTestLibrary("org.apache.dubbo:dubbo:2.+") // documented limitation
latestDepTestLibrary("org.apache.dubbo:dubbo-config-api:2.+") // documented limitation
}
+
+tasks.withType<Test>().configureEach {
+ // to suppress non-fatal errors on jdk17
+ jvmArgs("--add-opens=java.base/java.math=ALL-UNNAMED")
+ jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
+}

MODIFY
instrumentation/apache-dubbo-2.7/library-autoconfigure/build.gradle.kts
instrumentation/apache-dubbo-2.7/library-autoconfigure/build.gradle.kts
@@ -14,3 +14,9 @@ dependencies {
latestDepTestLibrary("org.apache.dubbo:dubbo:2.+") // documented limitation
latestDepTestLibrary("org.apache.dubbo:dubbo-config-api:2.+") // documented limitation
}
+
+tasks.withType<Test>().configureEach {
+ // to suppress non-fatal errors on jdk17
+ jvmArgs("--add-opens=java.base/java.math=ALL-UNNAMED")
+ jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
+}

dubbo: fix stacktraces in test output on jdk17 (#5962)