felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r1692960 - /felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/DependencyManager.java
Date Mon, 27 Jul 2015 21:50:09 GMT
Author: pderop
Date: Mon Jul 27 21:50:09 2015
New Revision: 1692960

URL: http://svn.apache.org/r1692960
Log:
FELIX-4974: DM filter indices are not enabled if the dependencymanager bundle is started before
any other bundles that contain a DM Activator.

Modified:
    felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/DependencyManager.java

Modified: felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/DependencyManager.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/DependencyManager.java?rev=1692960&r1=1692959&r2=1692960&view=diff
==============================================================================
--- felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/DependencyManager.java
(original)
+++ felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/DependencyManager.java
Mon Jul 27 21:50:09 2015
@@ -80,8 +80,10 @@ public class DependencyManager {
     static {
         try {
 	    	Bundle bundle = FrameworkUtil.getBundle(DependencyManager.class);
-	        if (bundle != null && bundle.getState() != Bundle.ACTIVE) {
-	            bundle.start();
+	        if (bundle != null) {
+	            if (bundle.getState() != Bundle.ACTIVE) {	        
+	                bundle.start();
+	            }
 	            BundleContext bundleContext = bundle.getBundleContext();
 	            String index = bundleContext.getProperty(SERVICEREGISTRY_CACHE_INDICES);
 	            if (index != null) {



Mime
View raw message