[ 
https://issues.apache.org/jira/browse/SLING-5667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15249746#comment-15249746
 ] 

Konrad Windszus commented on SLING-5667:
----------------------------------------

I clarified that behaviour in SLING-5041, so you should probably just reference 
the new commons osgi bundle with that fix in it. That way it is clearer which 
order is used here.

> MockBundleContext.getServiceReference(...) does not return service reference 
> with highest ranking
> -------------------------------------------------------------------------------------------------
>
>                 Key: SLING-5667
>                 URL: https://issues.apache.org/jira/browse/SLING-5667
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>    Affects Versions: Testing OSGi Mock 2.0.2
>            Reporter: Konrad Windszus
>
> According to 
> https://osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html#getServiceReference%28java.lang.Class%29
>  the service reference being returned must be the one with the highest 
> ranking. Currently it returns just any service reference.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to