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

This commit is contained in:
Lauri Tulmin 2022-05-03 05:21:33 +03:00 committed by GitHub
parent 4bd8956dd3
commit dded6ffc25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -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")
}

View File

@ -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")
}