8157507: JDK-8157348 broke gensrc of imported modules
Reviewed-by: alanb, tbell, mchung
--- a/make/GensrcModuleInfo.gmk Fri May 20 10:25:40 2016 +0200
+++ b/make/GensrcModuleInfo.gmk Sat May 21 18:21:53 2016 +0200
@@ -93,7 +93,9 @@
# Param 1 - Name of package with dots
PackageExists = \
$(strip $(wildcard $(addsuffix $(subst .,/,/$(strip $1)), \
- $(MODULE_CLASSES_DIRS))))
+ $(MODULE_CLASSES_DIRS) \
+ $(addsuffix /$(MODULE), $(IMPORT_MODULES_CLASSES)) \
+ )))
# Convert the modification lines into arguments for the modification tool.
# Filter out modifications for non existing to-modules.