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

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


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

commit 31f880cb520b7760e914426f4a03c5d178f7f221
Author: remm <r...@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 748d1cb..df3a0fb 100644
--- a/build.xml
+++ b/build.xml
@@ -1897,6 +1897,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.">
@@ -1922,11 +1929,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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to