# HG changeset patch # User erikj # Date 1510883043 -3600 # Node ID 3e345eba9255b99ad5dececcdbc7a4ade7d36bbf # Parent 90e0110a05f6083deab3d49210af61bb1696b2cb 8191420: Changing "requires" to "requires static" in an application module results in build failure Reviewed-by: tbell diff -r 90e0110a05f6 -r 3e345eba9255 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(/^ +\*.*/, ""); \