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/04/01 15:20:03 UTC
svn commit: r929960 -
/felix/branches/org.apache.felix.framework-2.0.5-RC/src/main/java/org/apache/felix/framework/cache/BundleCache.java
Author: rickhall
Date: Thu Apr 1 13:20:03 2010
New Revision: 929960
URL: http://svn.apache.org/viewvc?rev=929960&view=rev
Log:
Backport FELIX-2222 to framework 2.0.5.
Modified:
felix/branches/org.apache.felix.framework-2.0.5-RC/src/main/java/org/apache/felix/framework/cache/BundleCache.java
Modified: felix/branches/org.apache.felix.framework-2.0.5-RC/src/main/java/org/apache/felix/framework/cache/BundleCache.java
URL: http://svn.apache.org/viewvc/felix/branches/org.apache.felix.framework-2.0.5-RC/src/main/java/org/apache/felix/framework/cache/BundleCache.java?rev=929960&r1=929959&r2=929960&view=diff
==============================================================================
--- felix/branches/org.apache.felix.framework-2.0.5-RC/src/main/java/org/apache/felix/framework/cache/BundleCache.java (original)
+++ felix/branches/org.apache.felix.framework-2.0.5-RC/src/main/java/org/apache/felix/framework/cache/BundleCache.java Thu Apr 1 13:20:03 2010
@@ -142,9 +142,10 @@ public class BundleCache
}
catch (Exception ex)
{
- // Log and ignore.
+ // Log exception and remove bundle archive directory.
m_logger.log(Logger.LOG_ERROR,
- "Error creating archive.", ex);
+ "Error reloading cached bundle, removing it: " + children[i], ex);
+ deleteDirectoryTree(children[i]);
}
}
}