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

EqualsBuilder doesn't compile in 2.4 source code release

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.4
    • None
    • None
    • None
    • Windows Vista in Eclipse

    Description

      Line 381 of org.apache.commons.lang.EqualsBuilder fails to compile because the compareTo call requires a BigDecimal rather than an object.

      376 public EqualsBuilder append(Object lhs, Object rhs) {
      ...
      379 if (!lhsClass.isArray()) {
      380 if (lhs instanceof java.math.BigDecimal)

      { 381 isEquals = (((java.math.BigDecimal)lhs).compareTo(rhs) == 0); 382 }

      else {

      I'm using Sun's JDK 1.6.0_07 in Eclipse, not sure if this is a JDK version issue or not.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hallorant Tim Halloran
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: