Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 78074 invoked from network); 11 May 2006 06:19:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 May 2006 06:19:18 -0000 Received: (qmail 37875 invoked by uid 500); 11 May 2006 06:19:14 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 37810 invoked by uid 500); 11 May 2006 06:19:13 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 37794 invoked by uid 99); 11 May 2006 06:19:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2006 23:19:13 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.74.71.21] (HELO xizor.is.scarlet.be) (193.74.71.21) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2006 23:19:12 -0700 Received: from (ip-213-49-17-120.dsl-static.scarlet.be [213.49.17.120]) by xizor.is.scarlet.be with ESMTP id k4B6InV31209 for ; Thu, 11 May 2006 08:18:49 +0200 From: Chris Gray Organization: /k/ Embedded Java Systems To: harmony-dev@incubator.apache.org Subject: Re: [classlib] Exception throwing compatibility Date: Thu, 11 May 2006 08:23:54 +0200 User-Agent: KMail/1.5.4 References: <44622BCE.2050109@googlemail.com> In-Reply-To: <44622BCE.2050109@googlemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605110823.54275.chris.gray@kiffer.be> X-DCC-scarlet.be-Metrics: xizor 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, > * Dmitry (who raised the issue) believes that we should change the > Harmony code to throw the type named in the Javadoc/specification (i.e. > the supertype j.l.IndexOutOfBoundsException). Dmitry is wrong. > * Nathan believes that the code already abides by the specification and > that there is no need for any change in this area. Nathan is right. > * Little old me thinks that there *is* a problem here but that the > solution is to do as the RI does and throw exceptions with the very same > runtime type as the RI. That's based on my interpretation of the > exception-throwing compatibility guidelines [2], in particular the > fragment "Harmony class library code should throw exceptions of the same > type as the RI". You are right too. If it were my project I would change to mimic the RI once the discrepancy were pointed out to me, but I wouldn't (and don't) go looking for such things. Chris -- Chris Gray /k/ Embedded Java Solutions BE0503765045 Embedded & Mobile Java, OSGi http://www.k-embedded-java.com/ chris.gray@kiffer.be +32 3 216 0369 --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org