Henri Yandell added a comment - 06/Nov/08 08:30 PM (From LANG-464)
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.
Henri Yandell added a comment - 06/Nov/08 08:36 PM svn ci -m "Updating the BigDecimal.compareTo(Object) to BigDecimal.compareTo(BigDecimal) to match JDK change - fixes LANG-468/LANG-464" src
Sending src/java/org/apache/commons/lang/builder/EqualsBuilder.java
Transmitting file data .
Committed revision 711969.
LANG-464)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.