felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r1000583 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/JarContent.java
Date Thu, 23 Sep 2010 19:02:56 GMT
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(



Mime
View raw message