Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 57173 invoked from network); 28 Feb 2008 18:22:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Feb 2008 18:22:54 -0000 Received: (qmail 86131 invoked by uid 500); 28 Feb 2008 18:22:49 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 86075 invoked by uid 500); 28 Feb 2008 18:22:49 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 86052 invoked by uid 99); 28 Feb 2008 18:22:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2008 10:22:48 -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, 28 Feb 2008 18:22:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7C39B234C03F for ; Thu, 28 Feb 2008 10:21:51 -0800 (PST) Message-ID: <1750120807.1204222911507.JavaMail.jira@brutus> Date: Thu, 28 Feb 2008 10:21:51 -0800 (PST) From: "Xavier Hanin (JIRA)" To: notifications@ant.apache.org Subject: [jira] Updated: (IVY-696) StackOverflowError when configuration extends itself In-Reply-To: <20465027.1199788293851.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/IVY-696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xavier Hanin updated IVY-696: ----------------------------- Fix Version/s: 2.0 > StackOverflowError when configuration extends itself > ---------------------------------------------------- > > Key: IVY-696 > URL: https://issues.apache.org/jira/browse/IVY-696 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.0.0-beta-1 > Reporter: Johannes Rudolph > Priority: Minor > Fix For: 2.0 > > > I filed this as a bug though it is a clear usage error. But since this might happen more often I think it should be handled more gracefully and informatively: > If a configuration is specified to extend itself like in here: > {quote} > > > > > {quote} > Ivy doesn't complain but fails with a StackOverflowError: > {quote} > --- Nested Exception --- > java.lang.StackOverflowError > at java.util.HashMap.getEntry(HashMap.java:344) > at java.util.LinkedHashMap.get(LinkedHashMap.java:280) > at org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor.getConfiguration(DefaultModuleDescriptor.java:368) > at org.apache.ivy.core.resolve.IvyNode.addRootModuleConfigurations(IvyNode.java:596) > at org.apache.ivy.core.resolve.IvyNode.addRootModuleConfigurations(IvyNode.java:599) > at org.apache.ivy.core.resolve.IvyNode.addRootModuleConfigurations(IvyNode.java:599) > at org.apache.ivy.core.resolve.IvyNode.addRootModuleConfigurations(IvyNode.java:599) > {quote} > This might as well be valid for arbitrary configuration inheritance cycles, but I didn't tested this. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.