From robertburrelldonkin@blueyonder.co.uk Tue Sep 2 21:00:22 2003 Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 19365 invoked from network); 2 Sep 2003 21:00:22 -0000 Received: from unknown (HELO smtp-out5.blueyonder.co.uk) (195.188.213.8) by daedalus.apache.org with SMTP; 2 Sep 2003 21:00:22 -0000 Received: from localhost ([82.38.66.131]) by smtp-out5.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.5600); Tue, 2 Sep 2003 22:00:22 +0100 Date: Tue, 2 Sep 2003 22:02:26 +0100 Subject: Re: [betwixt] 1.0 beta dev, Recursive references result in infinite recursion Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) From: robert burrell donkin To: "Jakarta Commons Users List" Content-Transfer-Encoding: 7bit In-Reply-To: <200309021412.09705.danielm@kiwiplan.co.nz> Message-Id: X-Mailer: Apple Mail (2.482) X-OriginalArrivalTime: 02 Sep 2003 21:00:22.0805 (UTC) FILETIME=[39AA8C50:01C37195] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N hi daniel this sounds like a bug. the current way that betwixt rulesets work are about to be refactored so (personally speaking) i'm unlikely to fix this. of course, there's nothing to stop you (or anyone else) patching it yourself ;) i had hoped to get on with refactoring this really soon but unfortunately the ASF is short of bandwidth at the moment and i'm spending a lot of time at the moment moving releases onto mirrors and archiving old releases. hopefully i'll able to get back to coding again next week if you're able to wait that long. otherwise, you could try the alpha1 release. - robert On Tuesday, September 2, 2003, at 03:12 AM, Daniel McAllansmith wrote: > Hi, > > I'm using the latest (20030901) snapshot of betwixt. > > When I register a bean class, that indirectly references itself via > another > bean class, betwixt ends up recursing forever adding rules. > > For example, ABean holds a Collection of members of type BBean, where > BBean > has a property of type ABean holding its container. > In this situation I end up with repeated calls into > BeanRuleSet.addRule(String, Rule, ElementDescriptor, ReadContext) and > BeanRuleSet.addChildRules(String, ElementDescriptor, ReadContext) with > sucessively longer paths - > ABean/members/member/container/members/member/container... > > So, is this just a bug in the BeanRuleSet code or is there some explicit > mechanism I should be using to avoid the recursion? > > Thanks > Daniel > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org >