Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 87443 invoked from network); 5 Mar 2008 21:02:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2008 21:02:15 -0000 Received: (qmail 59753 invoked by uid 500); 5 Mar 2008 21:02:11 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 59742 invoked by uid 99); 5 Mar 2008 21:02:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2008 13:02:11 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.191.119.233] (HELO web708.biz.mail.mud.yahoo.com) (209.191.119.233) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 05 Mar 2008 21:01:21 +0000 Received: (qmail 71975 invoked by uid 60001); 5 Mar 2008 21:01:31 -0000 X-YMail-OSG: nqlLT5sVM1mC2mpRrqfXNjySDV1.bZi5ElpCe.mUgZVv8f4xPjtsYofusJldtigBBW6XJBF4e_uqRjjy4w4sM_kPsPHAWBadmuUtI1es2KgbUlllpCULDr9rKV3pgSDwQ1lKyM2gBAhkXPUTSFpq.OwB5gMr09HTruHGkXQ- Received: from [76.239.166.174] by web708.biz.mail.mud.yahoo.com via HTTP; Wed, 05 Mar 2008 13:01:31 PST X-Mailer: YahooMailRC/818.31 YahooMailWebService/0.7.162 Date: Wed, 5 Mar 2008 13:01:31 -0800 (PST) From: Matthew Adams Subject: Re: JDO 2.1 review: recursion-depth To: jdo-dev@db.apache.org, jdo-experts-ext@sun.com Cc: jdo-dev@db.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <441122.71277.qm@web708.biz.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Yes, I remember that now. I also remember never quite understanding why 0 is an invalid value. It seems to me that 0 would result in a no-op as far as recursion goes. Why is that an error? It might be dumb, but I don't think it has to be an error. ----- Original Message ---- From: Andy Jefferson To: jdo-experts-ext@sun.com Cc: jdo-dev@db.apache.org Sent: Wednesday, March 5, 2008 9:54:57 AM Subject: Re: JDO 2.1 review: recursion-depth > I think it would be helpful to add the description of a recursion-depth > value of zero to section 12.7.4. Values -1 and 1 are discussed, but the > subsequent example uses a value of zero, which is special enough a value to > be called out explicitly. Well I'd just fix the example :-). A value of 0 is invalid isn't it? -1 is unlimited, and a positive integer is a finite number of levels. That's all we can have. I think 0 used to represent infinite levels some time back but was changed to -1 see item 22 in the Changelog http://jcp.org/aboutJava/communityprocess/maintenance/jsr243/243ChangeLog.html -- Andy (Java Persistent Objects - http://www.jpox.org)