changeset 48041:3e345eba9255

8191420: Changing "requires" to "requires static" in an application module results in build failure Reviewed-by: tbell
author erikj
date Fri, 17 Nov 2017 02:44:03 +0100
parents 90e0110a05f6
children 09ad9dd26857
files make/common/Modules.gmk
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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(/^ +\*.*/, ""); \