[
https://issues.apache.org/jira/browse/ACE-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13732127#comment-13732127
]
Wilfried Sibla commented on ACE-404:
------------------------------------
the method must also return rank2-rank1, otherwise the lowest value wins.
Unfortunatels the ServiceReferences are not sorted, at least not, if
getProperty returns null for the key "SERVICE_RANKING"
> Error in Comparator for sorting artifact recognizer: services are not really
> sorted depending on their SERVICE_RANKING
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: ACE-404
> URL: https://issues.apache.org/jira/browse/ACE-404
> Project: ACE
> Issue Type: Bug
> Components: Client Repository
> Affects Versions: 1.0.0
> Reporter: Wilfried Sibla
>
> ArtifactRepositoryImpl.SERVICE_RANK_COMPARATOR, line 542
> is: rank1 = (rankObject2 == null) ? 0 : ((Integer) rankObject2).intValue();
> must be: rank2 = (rankObject2 == null) ? 0 : ((Integer)
> rankObject2).intValue();
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira