commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Closed: (LANG-464) EqualsBuilder doesn't compile in 2.4 source code release
Date Thu, 06 Nov 2008 20:30:49 GMT

     [ https://issues.apache.org/jira/browse/LANG-464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henri Yandell closed LANG-464.
------------------------------

    Resolution: Duplicate

Resolving as duplicate of LANG-468 which came out of an earlier discussion on this.

> EqualsBuilder doesn't compile in 2.4 source code release
> --------------------------------------------------------
>
>                 Key: LANG-464
>                 URL: https://issues.apache.org/jira/browse/LANG-464
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: 2.4
>         Environment: Windows Vista in Eclipse
>            Reporter: Tim Halloran
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message