felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (FELIX-948) ServiceReferenceImpl.compareTo should handle other types than integer for service ranking
Date Wed, 18 Feb 2009 17:29:01 GMT

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

Richard S. Hall resolved FELIX-948.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: felix-1.6.0

I have applied a patch in trunk to address this, please close this issue if you are satisfied.
Thanks.

> ServiceReferenceImpl.compareTo should handle other types than integer for service ranking
> -----------------------------------------------------------------------------------------
>
>                 Key: FELIX-948
>                 URL: https://issues.apache.org/jira/browse/FELIX-948
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>            Reporter: Carsten Ziegeler
>            Assignee: Richard S. Hall
>             Fix For: felix-1.6.0
>
>
> The ServiceReferenceImpl#compareTo() method currently directly casts the service ranking
properties to Integer.
> In Constants.java it reads:
> 	 * If the supplied property value is not of type
> 	 * <code>java.lang.Integer</code>, it is deemed to have a ranking value
> 	 * of zero.
> therefore I think we should check the type before casting and assume a ranking of zero
if the type is not integer.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message