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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: