8191420: Changing "requires" to "requires static" in an application module results in build failure
authorerikj
Fri, 17 Nov 2017 02:44:03 +0100
changeset 47853 3e345eba9255
parent 47852 90e0110a05f6
child 47854 09ad9dd26857
8191420: Changing "requires" to "requires static" in an application module results in build failure Reviewed-by: tbell
make/common/Modules.gmk
--- 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(/^ +\*.*/, ""); \