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

[tapestry-5] branch latest-java-tests updated: TAP5-2700: trying to fix XMLTokenStreamTests.testStreamEncoding()

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 8b072f3  TAP5-2700: trying to fix XMLTokenStreamTests.testStreamEncoding()
8b072f3 is described below

commit 8b072f3e91d1c57e5782b90c53a0eeaa71f16b0e
Author: Thiago H. de Paula Figueiredo <th...@arsmachina.com.br>
AuthorDate: Sat Feb 12 00:38:34 2022 -0300

    TAP5-2700: trying to fix XMLTokenStreamTests.testStreamEncoding()
---
 tapestry-core/build.gradle | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tapestry-core/build.gradle b/tapestry-core/build.gradle
index b2093cf..7e6e11c 100644
--- a/tapestry-core/build.gradle
+++ b/tapestry-core/build.gradle
@@ -72,9 +72,10 @@ jar {
     }
 }
 
-// Needed to have XMLTokenStreamTests.testStreamEncoding() passing on Java 17
+// Needed to have XMLTokenStreamTests.testStreamEncoding() passing on Java 9+
 test {
-    if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
+    if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_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");
     }
 }