You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2022/02/10 20:24:54 UTC

[tomcat] branch 8.5.x updated: Add workaround to allow running testsuite on Java 8

This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/8.5.x by this push:
     new 1912714  Add workaround to allow running testsuite on Java 8
1912714 is described below

commit 1912714307925c82b1ee015d7644bba044acf1f9
Author: remm <re...@apache.org>
AuthorDate: Thu Feb 10 21:15:04 2022 +0100

    Add workaround to allow running testsuite on Java 8
    
    In build.properties, add:
    opens.javalang=-Dtest10=1
    opens.javaio=-Dtest11=1
    opens.sunrmi=-Dtest12=1
    opens.javautil=-Dtest13=1
    opens.javautilconcurrent=-Dtest14=1
---
 build.xml | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/build.xml b/build.xml
index a297f1b..a640e20 100644
--- a/build.xml
+++ b/build.xml
@@ -1508,6 +1508,12 @@
     </condition>
   </target>
 
+  <property name="opens.javalang" value="--add-opens=java.base/java.lang=ALL-UNNAMED"/>
+  <property name="opens.javaio" value="--add-opens=java.base/java.io=ALL-UNNAMED"/>
+  <property name="opens.sunrmi" value="--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"/>
+  <property name="opens.javautil" value="--add-opens=java.base/java.util=ALL-UNNAMED"/>
+  <property name="opens.javautilconcurrent" value="--add-opens=java.base/java.util.concurrent=ALL-UNNAMED"/>
+
   <macrodef name="runtests"
             description="Runs the unit tests using the specified connector.
               Does not stop on errors, but sets 'test.result.error' and 'test.result.failure' properties.">
@@ -1535,11 +1541,11 @@
           <jvmarg value="-Djava.net.preferIPv4Stack=${java.net.preferIPv4Stack}"/>
           <jvmarg value="-Dorg.apache.tomcat.util.net.NioSelectorShared=${org.apache.tomcat.util.net.NioSelectorShared}"/>
 
-          <jvmarg value="--add-opens=java.base/java.lang=ALL-UNNAMED"/>
-          <jvmarg value="--add-opens=java.base/java.io=ALL-UNNAMED"/>
-          <jvmarg value="--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"/>
-          <jvmarg value="--add-opens=java.base/java.util=ALL-UNNAMED"/>
-          <jvmarg value="--add-opens=java.base/java.util.concurrent=ALL-UNNAMED"/>
+          <jvmarg value="${opens.javalang}"/>
+          <jvmarg value="${opens.javaio}"/>
+          <jvmarg value="${opens.sunrmi}"/>
+          <jvmarg value="${opens.javautil}"/>
+          <jvmarg value="${opens.javautilconcurrent}"/>
 
           <classpath refid="tomcat.test.classpath" />
 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org