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

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


The following commit(s) were added to refs/heads/master by this push:
     new f42f189  Add opens for Java 16
f42f189 is described below

commit f42f1899eda28244218bf4d29602bc99574d4486
Author: remm <r...@apache.org>
AuthorDate: Tue Dec 15 11:10:07 2020 +0100

    Add opens for Java 16
---
 bin/catalina.bat | 1 +
 bin/catalina.sh  | 1 +
 build.xml        | 5 +++++
 3 files changed, 7 insertions(+)

diff --git a/bin/catalina.bat b/bin/catalina.bat
index c5d09e3..4017dc4 100755
--- a/bin/catalina.bat
+++ b/bin/catalina.bat
@@ -227,6 +227,7 @@ set 
LOGGING_MANAGER=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogMa
 rem Configure JAVA 9 specific start-up parameters
 set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% 
--add-opens=java.base/java.lang=ALL-UNNAMED"
 set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% 
--add-opens=java.base/java.io=ALL-UNNAMED"
+set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% 
--add-opens=java.base/java.util=ALL-UNNAMED"
 set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% 
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
 
 rem Java 9 no longer supports the java.endorsed.dirs
diff --git a/bin/catalina.sh b/bin/catalina.sh
index 05e2fa2..4aa59d7 100755
--- a/bin/catalina.sh
+++ b/bin/catalina.sh
@@ -313,6 +313,7 @@ fi
 # Add the JAVA 9 specific start-up parameters required by Tomcat
 JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS 
--add-opens=java.base/java.lang=ALL-UNNAMED"
 JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.io=ALL-UNNAMED"
+JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS 
--add-opens=java.base/java.util=ALL-UNNAMED"
 JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS 
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
 export JDK_JAVA_OPTIONS
 
diff --git a/build.xml b/build.xml
index 50b4948..f937fc3 100644
--- a/build.xml
+++ b/build.xml
@@ -222,6 +222,10 @@
              property="java9.test.option.3"
              value="--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"/>
   <property name="java9.test.option.3" value="-Dtest.3=3"/>
+  <available classname="java.lang.reflect.InaccessibleObjectException"
+             property="java9.test.option.4"
+             value="--add-opens=java.base/java.util=ALL-UNNAMED"/>
+  <property name="java9.test.option.4" value="-Dtest.4=4"/>
 
   <!-- Classpaths -->
   <path id="compile.classpath">
@@ -1942,6 +1946,7 @@
         <jvmarg value="${java9.test.option.1}"/>
         <jvmarg value="${java9.test.option.2}"/>
         <jvmarg value="${java9.test.option.3}"/>
+        <jvmarg value="${java9.test.option.4}"/>
 
         <classpath refid="tomcat.test.run.classpath" />
 


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

Reply via email to