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:19:22 UTC

[tomcat] branch 10.0.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 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


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

commit 31e95854f35c69007fc213e0663989a9f9d2d22d
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 | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/build.xml b/build.xml
index 2c83901..b88f86b 100644
--- a/build.xml
+++ b/build.xml
@@ -1915,6 +1915,13 @@
     </condition>
   </target>
 
+  <property name="runtests.librarypath" value="-Djava.library.path=${test.apr.loc}"/>
+  <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.">
@@ -1940,11 +1947,11 @@
           <jvmarg value="-Djava.library.path=${test.apr.loc}"/>
           <jvmarg value="${test.formatter}"/>
           <jvmarg value="-Djava.net.preferIPv4Stack=${java.net.preferIPv4Stack}"/>
-          <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