pderop opened a new pull request, #610:
URL: https://github.com/apache/felix-dev/pull/610

   Motivation:
   
   When the service registry cache is enabled, the BundleContext injected into 
DM components is a BundleContextInterceptor. Its getServiceReferences(Class, 
String) method threw a NullPointerException when no service matched, instead of 
returning an empty collection as required by the OSGi specification.
   
   Modification:
   
   Return an empty collection when no service matches. Add a unit test covering 
both the indexed and the non-indexed lookups.
   
   Result:
   
   getServiceReferences(Class, String) behaves the same whether the service 
registry cache is enabled or not.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to