From 969c7a933ac1acfc012be045687460ea9747a321 Mon Sep 17 00:00:00 2001
From: Jan Lahoda <jlahoda@openjdk.org>
Date: Tue, 11 Oct 2016 13:16:45 +0200
Subject: [PATCH] 8167442: Langtools ant build not working after addition of
 -Xlint:exports

Disabling the exports lint when compiling the langtools modules until the warnings are resolved.

Reviewed-by: mcimadamore, forax
---
 langtools/make/build.properties | 3 ++-
 langtools/make/build.xml        | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/langtools/make/build.properties b/langtools/make/build.properties
index c65ccb64bd1..4deb152a515 100644
--- a/langtools/make/build.properties
+++ b/langtools/make/build.properties
@@ -24,11 +24,12 @@
 #
 
 #javac configuration for "normal build" (these will be passed to the bootstrap compiler):
-javac.opts = -XDignore.symbol.file=true -Xlint:all,-deprecation,-options -Werror -g:source,lines,vars
+javac.opts = -XDignore.symbol.file=true -Xlint:all,-deprecation,-options,-exports -Werror -g:source,lines,vars
 javac.source = 9
 javac.target = 9
 
 #version used to compile build tools
+javac.build.opts = -XDignore.symbol.file=true -Xlint:all,-deprecation,-options -Werror -g:source,lines,vars
 javac.build.source = 8
 javac.build.target = 8
 
diff --git a/langtools/make/build.xml b/langtools/make/build.xml
index 3fec57e54ef..94a9aee474f 100644
--- a/langtools/make/build.xml
+++ b/langtools/make/build.xml
@@ -275,7 +275,7 @@
                classpath="${ant.core.lib}"
                bootclasspath="${langtools.jdk.home}/jre/lib/rt.jar"
                includeantruntime="false">
-            <compilerarg line="${javac.opts} -XDstringConcat=inline"/>
+            <compilerarg line="${javac.build.opts} -XDstringConcat=inline"/>
         </javac>
         <taskdef name="pparse"
                  classname="anttasks.PropertiesParserTask"
@@ -291,7 +291,7 @@
                destdir="${build.dir}/toolclasses/"
                classpath="${ant.core.lib}"
                includeantruntime="false">
-            <compilerarg line="${javac.opts} -XDstringConcat=inline"/>
+            <compilerarg line="${javac.build.opts} -XDstringConcat=inline"/>
         </javac>
         <taskdef name="pcompile"
                  classname="anttasks.CompilePropertiesTask"