commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne (JIRA)" <j...@apache.org>
Subject [jira] Closed: (LANG-259) ValuedEnum.compareTo(Object other) not typesafe - it easily could be...
Date Fri, 18 Aug 2006 22:23:14 GMT
     [ http://issues.apache.org/jira/browse/LANG-259?page=all ]

Stephen Colebourne closed LANG-259.
-----------------------------------

    Fix Version/s: 2.2
                       (was: 2.3)
       Resolution: Fixed

Fix compareTo to check type
rv 432748

> ValuedEnum.compareTo(Object other) not typesafe - it easily could be...
> -----------------------------------------------------------------------
>
>                 Key: LANG-259
>                 URL: http://issues.apache.org/jira/browse/LANG-259
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: all
>            Reporter: Ralf Hauser
>             Fix For: 2.2
>
>
> int org.apache.commons.lang.enums.ValuedEnum.compareTo(Object other)
>  is not typesafe - if the int-values are the same, it will return "0" even for two totally
different sub-classes of ValuedEnum

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message