You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (JIRA)" <ji...@apache.org> on 2012/11/11 12:55:13 UTC
[jira] [Commented] (LANG-331) Fix for LANG-259 broke
ValuedEnum.compareTo() on subclassed enumerations
[ https://issues.apache.org/jira/browse/LANG-331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13494860#comment-13494860 ]
Thomas Neidhart commented on LANG-331:
--------------------------------------
lang.enum package has been removed in the 3.0 release. Unless there are plans for a 2.7 release, we could close this one as Won't Fix.
> 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
> Components: lang.enums.*
> Reporter: Michael Sclafani
> Fix For: 2.x
>
> Attachments: LANG-331.patch, LANG-331-test.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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira