This is an automated email from the ASF dual-hosted git repository. markt 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 08018d3 Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=63838 08018d3 is described below commit 08018d32af89a49a508e744b6eabe26d854b75be Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon Oct 28 22:45:28 2019 +0100 Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=63838 Add the same options used when Tomcat starts to suppress reflexive access warnings when running unit tests from the command line. --- build.xml | 18 ++++++++++++++++++ webapps/docs/changelog.xml | 4 ++++ 2 files changed, 22 insertions(+) diff --git a/build.xml b/build.xml index f8c7d62..ffe78f3 100644 --- a/build.xml +++ b/build.xml @@ -202,6 +202,19 @@ value="-html5"/> <property name="java9.javadoc.options" value=""/> + <available classname="java.lang.reflect.InaccessibleObjectException" + property="java9.test.option.1" + value="--add-opens=java.base/java.lang=ALL-UNNAMED"/> + <property name="java9.test.option.1" value="-Dtest.1=1"/> + <available classname="java.lang.reflect.InaccessibleObjectException" + property="java9.test.option.2" + value="--add-opens=java.base/java.io=ALL-UNNAMED"/> + <property name="java9.test.option.2" value="-Dtest.2=2"/> + <available classname="java.lang.reflect.InaccessibleObjectException" + 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"/> + <!-- Classpaths --> <path id="compile.classpath"> <pathelement location="${jdt.jar}"/> @@ -1517,6 +1530,11 @@ <jvmarg value="-Djava.net.preferIPv4Stack=${java.net.preferIPv4Stack}"/> <jvmarg value="-Dorg.apache.tomcat.util.net.NioSelectorShared=${org.apache.tomcat.util.net.NioSelectorShared}"/> + <!-- Java 9 --> + <jvmarg value="${java9.test.option.1}"/> + <jvmarg value="${java9.test.option.2}"/> + <jvmarg value="${java9.test.option.3}"/> + <classpath refid="tomcat.test.run.classpath" /> <sysproperty key="tomcat.test.temp" value="${test.temp}" /> diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 71c0077..9e6abdb 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -105,6 +105,10 @@ Windows since compiled versions of those components are already included within the zip distriubutions. (markt) </fix> + <fix> + <bug>63838</bug>: Suppress reflexive access warnings when running the + unit tests on the command line. (markt) + </fix> </changelog> </subsection> </section> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org