--- a/make/CompileJavaModules.gmk Thu Oct 27 21:21:52 2016 +0000
+++ b/make/CompileJavaModules.gmk Fri Oct 28 14:29:20 2016 +0200
@@ -473,6 +473,13 @@
jdk.localedata_EXCLUDE_FILES += sun/text/resources/ext/BreakIteratorRules_th.java
################################################################################
+# If this is an imported module that has prebuilt classes, only compile
+# module-info.java.
+ifneq ($(wildcard $(IMPORT_MODULES_CLASSES)/$(MODULE)), )
+ $(MODULE)_INCLUDE_FILES := module-info.java
+endif
+
+################################################################################
# Setup the compilation for the module
#
MODULE_SRC_DIRS := $(call FindModuleSrcDirs, $(MODULE))