Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 72731 invoked from network); 20 Mar 2010 20:18:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Mar 2010 20:18:48 -0000 Received: (qmail 39692 invoked by uid 500); 20 Mar 2010 20:18:48 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 39562 invoked by uid 500); 20 Mar 2010 20:18:48 -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 39554 invoked by uid 99); 20 Mar 2010 20:18:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Mar 2010 20:18:48 +0000 X-ASF-Spam-Status: No, hits=-1081.0 required=10.0 tests=ALL_TRUSTED,AWL 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; Sat, 20 Mar 2010 20:18:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 40747234C1EE for ; Sat, 20 Mar 2010 20:18:27 +0000 (UTC) Message-ID: <570605639.387841269116307263.JavaMail.jira@brutus.apache.org> Date: Sat, 20 Mar 2010 20:18:27 +0000 (UTC) From: "Henri Yandell (JIRA)" To: issues@commons.apache.org Subject: [jira] Closed: (LANG-606) EqualsBuilder causes StackOverflowException In-Reply-To: <1753338628.247901268511027322.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LANG-606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Henri Yandell closed LANG-606. ------------------------------ Resolution: Fixed Thanks Oliver. I modified the @since tags, but otherwise committed as is. svn ci -m "Applying the copy of the HashCodeBuilder code to stop cyclic references over to EqualsBuilder per LANG-606 and Oliver Sauder's patch" src/ Sending src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java Sending src/test/java/org/apache/commons/lang3/builder/EqualsBuilderTest.java Transmitting file data .. Committed revision 925671. > EqualsBuilder causes StackOverflowException > ------------------------------------------- > > Key: LANG-606 > URL: https://issues.apache.org/jira/browse/LANG-606 > Project: Commons Lang > Issue Type: Bug > Components: lang.builder.* > Affects Versions: 2.5 > Reporter: Oliver Sauder > Priority: Minor > Fix For: 3.0 > > Attachments: EqualsBuilderCyclicalObjectReferences-v01.patch, EqualsBuilderCyclicalObjectReferences.patch > > > EqualsBuilder causes StackOverflowException when comparing objects with cyclical object references. > e,g. > static class TestObjectReference { > @SuppressWarnings("unused") > private TestObjectReference reference; > @SuppressWarnings("unused") > private TestObject one; > > public TestObjectReference(int one) { > this.one = new TestObject(one); > } > > public void setObjectReference( > TestObjectReference reference) { > this.reference = reference; > } > @Override > public boolean equals(Object obj) { > return EqualsBuilder.reflectionEquals(this, obj); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.