You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2019/04/30 14:10:59 UTC

svn commit: r1858431 - /felix/trunk/connect/src/main/java/org/apache/felix/connect/felix/framework/ServiceRegistrationImpl.java

Author: cziegeler
Date: Tue Apr 30 14:10:59 2019
New Revision: 1858431

URL: http://svn.apache.org/viewvc?rev=1858431&view=rev
Log:
FELIX-6112 : SERVICE_BUNDLEID property not set in service registration

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

Modified: felix/trunk/connect/src/main/java/org/apache/felix/connect/felix/framework/ServiceRegistrationImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/connect/src/main/java/org/apache/felix/connect/felix/framework/ServiceRegistrationImpl.java?rev=1858431&r1=1858430&r2=1858431&view=diff
==============================================================================
--- felix/trunk/connect/src/main/java/org/apache/felix/connect/felix/framework/ServiceRegistrationImpl.java (original)
+++ felix/trunk/connect/src/main/java/org/apache/felix/connect/felix/framework/ServiceRegistrationImpl.java Tue Apr 30 14:10:59 2019
@@ -25,6 +25,9 @@ import java.util.Enumeration;
 import java.util.Map;
 import java.util.Set;
 
+import org.apache.felix.connect.felix.framework.util.MapToDictionary;
+import org.apache.felix.connect.felix.framework.util.StringMap;
+import org.apache.felix.connect.felix.framework.util.Util;
 import org.osgi.framework.Bundle;
 import org.osgi.framework.Constants;
 import org.osgi.framework.ServiceException;
@@ -34,10 +37,6 @@ import org.osgi.framework.ServiceRegistr
 import org.osgi.framework.wiring.BundleCapability;
 import org.osgi.framework.wiring.BundleRevision;
 
-import org.apache.felix.connect.felix.framework.util.MapToDictionary;
-import org.apache.felix.connect.felix.framework.util.StringMap;
-import org.apache.felix.connect.felix.framework.util.Util;
-
 class ServiceRegistrationImpl<T> implements ServiceRegistration<T>
 {
     // Service registry.
@@ -229,6 +228,7 @@ class ServiceRegistrationImpl<T> impleme
         // Add the framework assigned properties.
         props.put(Constants.OBJECTCLASS, m_classes);
         props.put(Constants.SERVICE_ID, m_serviceId);
+        props.put(Constants.SERVICE_BUNDLEID, m_bundle.getBundleId());
 
         // Update the service property map.
         m_propMap = props;