felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r1441093 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java
Date Thu, 31 Jan 2013 18:08:24 GMT
Author: rickhall
Date: Thu Jan 31 18:08:24 2013
New Revision: 1441093

URL: http://svn.apache.org/viewvc?rev=1441093&view=rev
Log:
Don't call stop() on an uninstalled bundle when refreshing, since it will
just result in an exception that fails one of the CT test cases since we
end up firing an extra framework event. (FELIX-3807)

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java?rev=1441093&r1=1441092&r2=1441093&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java Thu Jan 31 18:08:24
2013
@@ -4710,7 +4710,10 @@ public class Felix extends BundleImpl im
             try
             {
                 m_oldState = m_bundle.getState();
-                stopBundle(m_bundle, false);
+                if (m_oldState != Bundle.UNINSTALLED)
+                {
+                    stopBundle(m_bundle, false);
+                }
             }
             catch (Throwable ex)
             {



Mime
View raw message