mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8247407
: tools/jlink/plugins/CompressorPluginTest.java test failing
Reviewed-by: sundar, jlaskey
This commit is contained in:
parent
7ac40f3b9f
commit
9c92da5249
3 changed files with 92 additions and 2 deletions
|
@ -458,7 +458,11 @@ public final class ImageReader implements AutoCloseable {
|
|||
makeDirectories(path);
|
||||
} else { // a resource
|
||||
makeDirectories(childloc.buildName(true, true, false));
|
||||
newResource(dir, childloc);
|
||||
// if we have already created a resource for this name previously, then don't
|
||||
// recreate it
|
||||
if (!nodes.containsKey(childloc.getFullName(true))) {
|
||||
newResource(dir, childloc);
|
||||
}
|
||||
}
|
||||
});
|
||||
dir.setCompleted(true);
|
||||
|
@ -753,6 +757,7 @@ public final class ImageReader implements AutoCloseable {
|
|||
}
|
||||
|
||||
void addChild(Node node) {
|
||||
assert !children.contains(node) : "Child " + node + " already added";
|
||||
children.add(node);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue