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

ValuedEnum.compareTo(Object other) not typesafe - it easily could be...

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2
    • None
    • None
    • all

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ralfhauser Ralf Hauser
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: