8165503: jlink exclude VM plugin's handling of jvmlibs is wrong
Reviewed-by: jlaskey
--- a/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/ExcludeVMPlugin.java Wed Sep 07 10:14:48 2016 +0300
+++ b/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/ExcludeVMPlugin.java Wed Sep 07 18:35:21 2016 +0530
@@ -103,7 +103,9 @@
List<ResourcePoolEntry> ret = javaBase.entries().filter((t) -> {
String path = t.path();
for (String jvmlib : jvmlibs) {
- return t.path().endsWith("/" + jvmlib);
+ if (t.path().endsWith("/" + jvmlib)) {
+ return true;
+ }
}
return false;
}).collect(Collectors.toList());