[ 
https://issues.apache.org/jira/browse/FELIX-3175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Felix Meschberger updated FELIX-3175:
-------------------------------------

    Affects Version/s:     (was: configadmin-1.2.10)
                        configadmin-1.2.8
    
> RankingComparator results in wrong results
> ------------------------------------------
>
>                 Key: FELIX-3175
>                 URL: https://issues.apache.org/jira/browse/FELIX-3175
>             Project: Felix
>          Issue Type: Bug
>          Components: Configuration Admin
>    Affects Versions:  configadmin-1.2.8
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: configadmin-1.4.0
>
>
> The RankingComparator class is used for two cases: ordering 
> ConfigurationPlugin services as per the service.cmRanking property and 
> ordering services as per the service.ranking property. These orderings are 
> slightly different for which the class does not provide properly:
> * service.cmRanking sorts ascending and does not define an order amongst 
> services with the same cmRanking value
> * service.ranking sorts in descending property value order and defines to 
> fall back to service.id ordering (ascending) in case of equal service.ranking 
> values.
> The RankingComparator should be fixed (and simplified) to cope with these two 
> mechanisms.
> This should also be tested using unit tests.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to