Commons Lang
  1. Commons Lang
  2. LANG-259

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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

        Issue Links

          Activity

          Ralf Hauser created issue -
          Henri Yandell made changes -
          Field Original Value New Value
          Fix Version/s 2.2 [ 12311702 ]
          Henri Yandell made changes -
          Fix Version/s 2.2 [ 12311702 ]
          Fix Version/s 2.3 [ 12311948 ]
          Stephen Colebourne made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 2.2 [ 12311702 ]
          Resolution Fixed [ 1 ]
          Fix Version/s 2.3 [ 12311948 ]
          Stephen Colebourne made changes -
          Link This issue is related to LANG-258 [ LANG-258 ]
          Mark Thomas made changes -
          Workflow jira [ 12372256 ] Default workflow, editable Closed status [ 12602115 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development