Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 76894 invoked from network); 27 Feb 2011 03:30:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Feb 2011 03:30:25 -0000 Received: (qmail 63889 invoked by uid 500); 27 Feb 2011 03:30:25 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 63700 invoked by uid 500); 27 Feb 2011 03:30:22 -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 63557 invoked by uid 99); 27 Feb 2011 03:30:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Feb 2011 03:30:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Feb 2011 03:30:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A4C3E1B985D for ; Sun, 27 Feb 2011 03:29:58 +0000 (UTC) Date: Sun, 27 Feb 2011 03:29:58 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: <1865258096.638.1298777398671.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Resolved: (NET-289) StackOverflowError in Threader MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/NET-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb resolved NET-289. ---------------------- Resolution: Fixed Fix Version/s: 3.0 > StackOverflowError in Threader > ------------------------------ > > Key: NET-289 > URL: https://issues.apache.org/jira/browse/NET-289 > Project: Commons Net > Issue Type: Bug > Components: NNTP > Reporter: Luc Claes > Priority: Minor > Fix For: 3.0 > > > The loop detection code in Threader.buildContainer() is currently: > // Link references together in the order they appear in the References: header, > // IF they dont have a have a parent already && > // IF it will not cause a circular reference > if ((parentRef != null) > && (ref.parent == null) > && (parentRef != ref) > && !(parentRef.findChild(ref))) { > // Link ref into the parent's child list > Deep circular references where 'parentRef' is already a child of 'ref' and ref is the root container are possible. > The test should be: > if ((parentRef != null) > && (ref.parent == null) > && (parentRef != ref) > && !(ref.findChild(parentRef))) { > // Link ref into the parent's child list -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira