You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ri...@apache.org on 2010/09/23 21:02:56 UTC
svn commit: r1000583 -
/felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java
Author: rickhall
Date: Thu Sep 23 19:02:56 2010
New Revision: 1000583
URL: http://svn.apache.org/viewvc?rev=1000583&view=rev
Log:
Avoid another disk access. (FELIX-2619)
Modified:
felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java
Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java?rev=1000583&r1=1000582&r2=1000583&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java Thu Sep 23 19:02:56 2010
@@ -247,18 +247,15 @@ public class JarContent implements Conte
// 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(