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

samt pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/trunk by this push:
     new b9c7a90  Ninja: fix jdk11 build
b9c7a90 is described below

commit b9c7a90e8a928cb22cd2b7c4ecd9f8dbc711e10e
Author: Sam Tunnicliffe <[email protected]>
AuthorDate: Wed Mar 25 19:31:41 2020 +0000

    Ninja: fix jdk11 build
---
 build.xml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/build.xml b/build.xml
index 7af1775..50937e1 100644
--- a/build.xml
+++ b/build.xml
@@ -204,6 +204,13 @@
         </not>
     </condition>
 
+    <!-- needed to compile org.apache.cassandra.utils.JMXServerUtils -->
+    <condition property="jdk11-javac-exports" value="--add-exports 
java.rmi/sun.rmi.registry=ALL-UNNAMED" else="">
+        <not>
+            <equals arg1="${ant.java.version}" arg2="1.8"/>
+        </not>
+    </condition>
+
     <condition property="build.java.11">
         <istrue value="${use.jdk11}"/>
     </condition>
@@ -936,6 +943,7 @@
             <src path="${build.src.java}"/>
             <src path="${build.src.gen-java}"/>
             <compilerarg value="-XDignore.symbol.file"/>
+            <compilerarg line="${jdk11-javac-exports}"/>
             <classpath>
                 <path refid="cassandra.classpath"/>
             </classpath>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to