parent
4ec2e357d9
commit
07c0a8bced
|
@ -128,9 +128,7 @@ public class JarFile extends AbstractJarFile implements Iterable<java.util.jar.J
|
||||||
private JarFile(RandomAccessDataFile rootFile, String pathFromRoot, RandomAccessData data, JarEntryFilter filter,
|
private JarFile(RandomAccessDataFile rootFile, String pathFromRoot, RandomAccessData data, JarEntryFilter filter,
|
||||||
JarFileType type, Supplier<Manifest> manifestSupplier) throws IOException {
|
JarFileType type, Supplier<Manifest> manifestSupplier) throws IOException {
|
||||||
super(rootFile.getFile());
|
super(rootFile.getFile());
|
||||||
if (System.getSecurityManager() == null) {
|
|
||||||
super.close();
|
super.close();
|
||||||
}
|
|
||||||
this.rootFile = rootFile;
|
this.rootFile = rootFile;
|
||||||
this.pathFromRoot = pathFromRoot;
|
this.pathFromRoot = pathFromRoot;
|
||||||
CentralDirectoryParser parser = new CentralDirectoryParser();
|
CentralDirectoryParser parser = new CentralDirectoryParser();
|
||||||
|
|
|
@ -40,10 +40,8 @@ class JarFileWrapper extends AbstractJarFile {
|
||||||
JarFileWrapper(JarFile parent) throws IOException {
|
JarFileWrapper(JarFile parent) throws IOException {
|
||||||
super(parent.getRootJarFile().getFile());
|
super(parent.getRootJarFile().getFile());
|
||||||
this.parent = parent;
|
this.parent = parent;
|
||||||
if (System.getSecurityManager() == null) {
|
|
||||||
super.close();
|
super.close();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
URL getUrl() throws MalformedURLException {
|
URL getUrl() throws MalformedURLException {
|
||||||
|
|
Loading…
Reference in New Issue