Attempt to prevent JarFiles from being left open

Update `JarFile` to also call `super.close()` early for nested jars.

See gh-21126
pull/21267/head
Phillip Webb 5 years ago
parent 7c6e912463
commit 7d53f7d27f

@ -111,6 +111,7 @@ public class JarFile extends java.util.jar.JarFile {
*/
JarFile(JarFile parent) throws IOException {
super(parent.rootFile.getFile());
super.close();
this.parent = parent;
this.rootFile = parent.rootFile;
this.pathFromRoot = parent.pathFromRoot;

Loading…
Cancel
Save