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:58:44 UTC

[tapestry-5] branch latest-java-tests updated: TAP5-2700: fixing bad JavaVersion enum value for Java 9 (x2)

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


The following commit(s) were added to refs/heads/latest-java-tests by this push:
     new c0af9b0  TAP5-2700: fixing bad JavaVersion enum value for Java 9 (x2)
c0af9b0 is described below

commit c0af9b0f5f6a852c5a328e4de12b7c92e9e6ef5f
Author: Thiago H. de Paula Figueiredo <th...@arsmachina.com.br>
AuthorDate: Sat Feb 12 00:58:29 2022 -0300

    TAP5-2700: fixing bad JavaVersion enum value for Java 9 (x2)
---
 build.gradle               | 2 +-
 tapestry-core/build.gradle | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/build.gradle b/build.gradle
index 5717c01..2d7a05a 100755
--- a/build.gradle
+++ b/build.gradle
@@ -220,7 +220,7 @@ subprojects {
         }
     
         // Needed to have XMLTokenStreamTests.testStreamEncoding() passing on Java 9+
-        if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_19)) {
+        if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_1_9)) {
             println "Java 9+ JVM arg: --add-opens=java.base/java.nio.charset=ALL-UNNAMED"
             jvmArgs("--add-opens=java.base/java.nio.charset=ALL-UNNAMED");
         }
diff --git a/tapestry-core/build.gradle b/tapestry-core/build.gradle
index e3d1b64..6dd9956 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_19)) {
+    if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_1_9)) {
         println "Java 9+ JVM arg: --add-opens=java.base/java.nio.charset=ALL-UNNAMED"
         jvmArgs("--add-opens=java.base/java.nio.charset=ALL-UNNAMED");
     }