Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-331

Fix for LANG-259 broke ValuedEnum.compareTo() on subclassed enumerations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • lang.enums.*
    • None

    Description

      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().

      Attachments

        1. LANG-331.patch
          1 kB
          Henri Yandell
        2. LANG-331-test.patch
          2 kB
          Henri Yandell

        Activity

          People

            Unassigned Unassigned
            sclafani Michael Sclafani
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: