# HG changeset patch
# User erikj
# Date 1411120381 -7200
# Node ID b214ab286ce981a9e280f3d2da45d3e2ab86bee8
# Parent  1b1ec4291abc0ba6da7bf79b754f08dd759a4a0c
8058797: Building with sjavac broken after JDK-8058118
Reviewed-by: ihse

diff -r 1b1ec4291abc -r b214ab286ce9 make/common/JavaCompilation.gmk
--- a/make/common/JavaCompilation.gmk	Wed Jul 05 20:01:50 2017 +0200
+++ b/make/common/JavaCompilation.gmk	Fri Sep 19 11:53:01 2014 +0200
@@ -443,6 +443,7 @@
   #       source roots from SRC. This is sometimes needed when compiling specific subsets of the source.
   #   HEADERS:=path to directory where all generated c-headers are written.
   #   DEPENDS:=Extra dependecy
+  #   DISABLE_SJAVAC:=Explicitly disable the use of sjavac for this compilation unit.
   $(foreach i,2 3 4 5 6 7 8 9 10 11 12 13 14 15, $(if $($i),$1_$(strip $($i)))$(NEWLINE))
   $(call LogSetupMacroEntry,SetupJavaCompilation($1),$2,$3,$4,$5,$6,$7,$8,$9,$(10),$(11),$(12),$(13),$(14),$(15))
   $(if $(16),$(error Internal makefile error: Too many arguments to SetupJavaCompilation, please update JavaCompilation.gmk))
diff -r 1b1ec4291abc -r b214ab286ce9 make/common/Modules.gmk
--- a/make/common/Modules.gmk	Wed Jul 05 20:01:50 2017 +0200
+++ b/make/common/Modules.gmk	Fri Sep 19 11:53:01 2014 +0200
@@ -67,7 +67,8 @@
     SETUP := BOOT_JAVAC, \
     SRC := $(JDK_TOPDIR)/make/src/classes, \
     INCLUDES := build/tools/module, \
-    BIN := $(MAKESUPPORT_OUTPUTDIR)/bt_classes_moduleslist))
+    BIN := $(MAKESUPPORT_OUTPUTDIR)/bt_classes_moduleslist, \
+    DISABLE_SJAVAC := true))
 
 TOOL_GENMODULESLIST = $(JAVA_SMALL) \
     -cp "$(MAKESUPPORT_OUTPUTDIR)/bt_classes_moduleslist" \