[
https://issues.apache.org/jira/browse/ACE-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13792556#comment-13792556
]
Wilfried Sibla commented on ACE-404:
------------------------------------
the SERVICE_RANK_COMPARATOR can be removed.
Sorting must be done with this line
Arrays.sort(refs, Collections.reverseOrder());
> 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 was sent by Atlassian JIRA
(v6.1#6144)