8191420: Changing "requires" to "requires static" in an application module results in build failure
Reviewed-by: tbell
--- a/make/common/Modules.gmk Thu Nov 16 15:21:04 2017 -0800
+++ b/make/common/Modules.gmk Fri Nov 17 02:44:03 2017 +0100
@@ -328,8 +328,9 @@
$(NAWK) -v MODULE=$(call GetModuleNameFromModuleInfo, $m) '\
BEGIN { if (MODULE != "java.base") printf(" java.base"); } \
/^ *requires/ { sub(/;/, ""); \
- sub(/requires/, ""); \
- sub(/transitive/, ""); \
+ sub(/requires /, " "); \
+ sub(/ static /, " "); \
+ sub(/ transitive /, " "); \
sub(/\/\/.*/, ""); \
sub(/\/\*.*\*\//, ""); \
gsub(/^ +\*.*/, ""); \