You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by th...@apache.org on 2022/02/12 03:49:07 UTC
[tapestry-5] 01/02: TAP5-2700: fixing bad JavaVersion enum value for Java 9
This is an automated email from the ASF dual-hosted git repository.
thiagohp pushed a commit to branch latest-java-tests
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
commit 74b0da4dc5a683d5f92d96bc71131d04b8d3c178
Author: Thiago H. de Paula Figueiredo <th...@arsmachina.com.br>
AuthorDate: Sat Feb 12 00:45:27 2022 -0300
TAP5-2700: fixing bad JavaVersion enum value for Java 9
---
build.gradle | 7 +++++++
tapestry-core/build.gradle | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/build.gradle b/build.gradle
index 8aaa360..5717c01 100755
--- a/build.gradle
+++ b/build.gradle
@@ -218,6 +218,13 @@ subprojects {
}else{
maxHeapSize "600M"
}
+
+ // Needed to have XMLTokenStreamTests.testStreamEncoding() passing on Java 9+
+ if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_19)) {
+ println "Java 9+ JVM arg: --add-opens=java.base/java.nio.charset=ALL-UNNAMED"
+ jvmArgs("--add-opens=java.base/java.nio.charset=ALL-UNNAMED");
+ }
+
// Turn off live service reloading
diff --git a/tapestry-core/build.gradle b/tapestry-core/build.gradle
index 7e6e11c..e3d1b64 100644
--- a/tapestry-core/build.gradle
+++ b/tapestry-core/build.gradle
@@ -74,7 +74,7 @@ jar {
// Needed to have XMLTokenStreamTests.testStreamEncoding() passing on Java 9+
test {
- if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_9)) {
+ if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_19)) {
println "Java 9+ JVM arg: --add-opens=java.base/java.nio.charset=ALL-UNNAMED"
jvmArgs("--add-opens=java.base/java.nio.charset=ALL-UNNAMED");
}