diff options
author | Thomas Watson | 2010-03-31 15:22:25 +0000 |
---|---|---|
committer | Thomas Watson | 2010-03-31 15:22:25 +0000 |
commit | 34b7661bb9a91196ef9523005686277d1824a242 (patch) | |
tree | 8b9c1b7cf781db215426c7602318c1a1a1520295 | |
parent | 8ea2d08be7cf301194ad39c4dff373799bd01cae (diff) | |
download | rt.equinox.framework-34b7661bb9a91196ef9523005686277d1824a242.tar.gz rt.equinox.framework-34b7661bb9a91196ef9523005686277d1824a242.tar.xz rt.equinox.framework-34b7661bb9a91196ef9523005686277d1824a242.zip |
Bug 307209 - ZipException missing filename
-rw-r--r-- | bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/util/SecureAction.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/util/SecureAction.java b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/util/SecureAction.java index 6b662afcb..7a25fb59d 100644 --- a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/util/SecureAction.java +++ b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/util/SecureAction.java @@ -260,11 +260,14 @@ public class SecureAction { throw (IOException) e.getException(); throw (RuntimeException) e.getException(); } + } catch (ZipException e) { + ZipException zipNameException = new ZipException("Exception in opening zip file: " + file.getPath()); //$NON-NLS-1$ + zipNameException.initCause(e); + throw zipNameException; } catch (IOException e) { - IOException fileNameEx = new ZipException("Exception in opening zip file: " + file.getPath()); //$NON-NLS-1$ - fileNameEx.initCause(e); - throw fileNameEx; - + IOException fileNameException = new IOException("Exception in opening zip file: " + file.getPath()); //$NON-NLS-1$ + fileNameException.initCause(e); + throw fileNameException; } } |