commit | de0591c6fbcad3f0c99341f3f76821a2ffa5da99 | [log] [tgz] |
---|---|---|
author | Jeff McAffer <jeff> | Tue Aug 31 15:11:09 2004 +0000 |
committer | Jeff McAffer <jeff> | Tue Aug 31 15:11:09 2004 +0000 |
tree | ae37824772e9befffb355d198cac166c8a5be2ce | |
parent | b3058b5ed5c6c3d05d02b63068bfaf675aa7f47e [diff] |
Bug 72747 Unclosed jar file and stream in pluginConverter
diff --git a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/PluginConverterImpl.java b/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/PluginConverterImpl.java index 73c47ab..4514eb8 100644 --- a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/PluginConverterImpl.java +++ b/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/PluginConverterImpl.java
@@ -189,7 +189,7 @@ } try { xmlFileLocation = new URL(baseURL, FRAGMENT_MANIFEST); - xmlFileLocation.openStream(); + stream = xmlFileLocation.openStream(); manifestType |= EclipseBundleData.MANIFEST_TYPE_FRAGMENT; return xmlFileLocation; } catch (MalformedURLException e) { @@ -504,6 +504,11 @@ names.add(DOT); } } + try { + file.close(); + } catch (IOException e) { + // Nothing to do + } return names; }