mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-13 23:19:36 +00:00
8165503: jlink exclude VM plugin's handling of jvmlibs is wrong
Reviewed-by: jlaskey
This commit is contained in:
parent
b7edd5f9aa
commit
256e3bab87
@ -103,7 +103,9 @@ public final class ExcludeVMPlugin implements Plugin {
|
||||
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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user