Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 16351 invoked from network); 6 Nov 2008 20:39:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2008 20:39:13 -0000 Received: (qmail 35639 invoked by uid 500); 6 Nov 2008 20:39:14 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 35537 invoked by uid 500); 6 Nov 2008 20:39:13 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 35432 invoked by uid 99); 6 Nov 2008 20:39:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2008 12:39:13 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2008 20:38:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 166FF234C285 for ; Thu, 6 Nov 2008 12:38:46 -0800 (PST) Message-ID: <1571924777.1226003926090.JavaMail.jira@brutus> Date: Thu, 6 Nov 2008 12:38:46 -0800 (PST) From: "Henri Yandell (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (LANG-464) EqualsBuilder doesn't compile in 2.4 source code release In-Reply-To: <1870408711.1222894544258.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LANG-464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645572#action_12645572 ] Henri Yandell commented on LANG-464: ------------------------------------ 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. > 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.