commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LANG-331) Fix for LANG-259 broke ValuedEnum.compareTo() on subclassed enumerations
Date Thu, 09 Aug 2007 07:33:42 GMT

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

Henri Yandell updated LANG-331:
-------------------------------

    Attachment: LANG-331-test.patch

Not sure that last patch has the right idea or not. equals() would also have to change. 

I've also made a unit test for this. Attaching that now.

> Fix for LANG-259 broke ValuedEnum.compareTo() on subclassed enumerations
> ------------------------------------------------------------------------
>
>                 Key: LANG-331
>                 URL: https://issues.apache.org/jira/browse/LANG-331
>             Project: Commons Lang
>          Issue Type: Bug
>            Reporter: Michael Sclafani
>             Fix For: 2.3.1
>
>         Attachments: LANG-331-test.patch, LANG-331.patch
>
>
> I have a ValuedEnum abstract subclass that I further subclass to attach useful implementation
behaviors. The base class overrides getEnumClass(). The fix for LANG-259 broke compareTo()
since it compares getClass(), not getEnumClass().

-- 
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