commit | 5d0257b1b4c681382c1852e6d84ed8f5a911e982 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Thu Sep 23 19:02:56 2010 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Thu Sep 23 19:02:56 2010 +0000 |
tree | 14ebcf727f5eeea8642a9f1ff2c10665478a7938 | |
parent | 0557fdf3c3d3289f6bef3b9eac7efa1647791f09 [diff] |
Avoid another disk access. (FELIX-2619) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1000583 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java b/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java index 7f7ede5..1420eee 100644 --- a/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java +++ b/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java
@@ -247,18 +247,15 @@ // to avoid a race condition. synchronized (m_revisionLock) { - if (!BundleCache.getSecureAction().fileExists(extractJar)) + try { - try - { - extractEmbeddedJar(entryName); - } - catch (Exception ex) - { - m_logger.log( - Logger.LOG_ERROR, - "Unable to extract embedded JAR file.", ex); - } + extractEmbeddedJar(entryName); + } + catch (Exception ex) + { + m_logger.log( + Logger.LOG_ERROR, + "Unable to extract embedded JAR file.", ex); } } return new JarContent(