commit | b11147f7d400aa630cdbb3268ad56e6f504013fe | [log] [tgz] |
---|---|---|
author | Christopher Elek <celek> | Fri Feb 21 02:38:28 2003 +0000 |
committer | Christopher Elek <celek> | Fri Feb 21 02:38:28 2003 +0000 |
tree | b6e2bb1a04cb9420df679dec993ee2113815dd88 | |
parent | 11db7e9dc9187ca3583d64cd4f5a6627bff614d3 [diff] |
*** empty log message ***
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/JarVerifier.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/JarVerifier.java index 62ee151..ba6c533 100644 --- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/JarVerifier.java +++ b/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/JarVerifier.java
@@ -318,7 +318,6 @@ // while reading it jarFile = new JarFile(file, true); List filesInJar = readJarFile(jarFile); - jarFile.close(); // you have to read all the files once // before getting the certificates @@ -361,6 +360,10 @@ } catch (Exception e) { result.setVerificationCode(IVerificationResult.UNKNOWN_ERROR); result.setResultException(e); + } finally { + if (jarFile!=null){ + try {jarFile.close();} catch (IOException e){} + } } }