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] Commented: (LANG-331) Fix for LANG-259 broke ValuedEnum.compareTo() on subclassed enumerations
Date Sat, 03 Nov 2007 08:05:50 GMT

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

Henri Yandell commented on LANG-331:
------------------------------------

Does 'Bad Idea' imply any suggestions? :)

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