felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r785598 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java
Date Wed, 17 Jun 2009 13:39:54 GMT
Author: rickhall
Date: Wed Jun 17 13:39:54 2009
New Revision: 785598

URL: http://svn.apache.org/viewvc?rev=785598&view=rev
Log:
Modified when the framework fires BundleEvent.UNRESOLVED events. (FELIX-1247)

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=785598&r1=785597&r2=785598&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 Wed Jun 17 13:39:54
2009
@@ -308,10 +308,9 @@
         {
             // This should not throw an exception, but if so, lets convert it to
             // a runtime exception.
-            throw new RuntimeException(ex.getMessage());
+            throw new RuntimeException(ex);
         }
 
-
         // Read the boot delegation property and parse it.
         String s = (m_configMap == null)
             ? null
@@ -2149,6 +2148,9 @@
             releaseBundleLock(bundle);
         }
 
+        // Fire UNRESOLVED event without holding the lock.
+        fireBundleEvent(BundleEvent.UNRESOLVED, bundle);
+
         // Fire UNINSTALLED event without holding the lock.
         fireBundleEvent(BundleEvent.UNINSTALLED, bundle);
 
@@ -3561,7 +3563,6 @@
         {
             // Reset the bundle object and fire UNRESOLVED event.
             ((BundleImpl) bundle).refresh();
-            fireBundleEvent(BundleEvent.UNRESOLVED, bundle);
         }
         catch (Exception ex)
         {



Mime
View raw message