Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 9649 invoked from network); 24 Apr 2006 06:49:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Apr 2006 06:49:19 -0000 Received: (qmail 30471 invoked by uid 500); 24 Apr 2006 06:49:07 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 30427 invoked by uid 500); 24 Apr 2006 06:49:07 -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 30416 invoked by uid 99); 24 Apr 2006 06:49:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Apr 2006 23:49:07 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mloenko@gmail.com designates 64.233.182.190 as permitted sender) Received: from [64.233.182.190] (HELO nproxy.gmail.com) (64.233.182.190) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Apr 2006 23:49:06 -0700 Received: by nproxy.gmail.com with SMTP id p48so687899nfa for ; Sun, 23 Apr 2006 23:48:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Ji6+SvxgSrW0hTVtMj0C+JajSWvrvdNVV6GSBGE1zrvqtAYM7zpo3yZfEflj6vViDCoKlbSZQaZ0pKTPQFKs2Je/urWmPwlaY/cCONFDrnvJF+XdpLciQLl+dj2SHno5NoLk2sqIKBkNMHMLcVUaWmwQlM0H9KX2iG1pntnYFhw= Received: by 10.48.4.6 with SMTP id 6mr2498476nfd; Sun, 23 Apr 2006 23:48:45 -0700 (PDT) Received: by 10.49.6.5 with HTTP; Sun, 23 Apr 2006 23:48:45 -0700 (PDT) Message-ID: <906dd82e0604232348h6c0243e6oe3af085d475f4c81@mail.gmail.com> Date: Mon, 24 Apr 2006 13:48:45 +0700 From: "Mikhail Loenko" To: harmony-dev@incubator.apache.org Subject: [classlib] matching RI exceptions -- are we required to have this type of compatibility? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Look at HARMONY-387. Example: 1) java.io.ByteArrayOutputStream.write(byte[] b , int off, int len): Harmony throws ArrayIndexOutOfBoundsException when off<0 or/and len <0, while RI throws IndexOutOfBoundsException. Specification mentions neither ArrayIndexOutOfBoundsException nor IndexOutOfBoundsException. Actually ArrayIndexOutOfBoundsException is a sub class of IndexOutOfBoundsException. So the statement "both Harmony and RI throw IndexOutOfBoundsException" is true. But do we have to throw exactly those exceptions that are thrown by RI? Can we throw o.a.h.VMRisenNPE that extends NullPointerException? What if they throw kind of sun.internal.SunFavoriteSubClassOfNullPointerException ? Thanks, Mikhail --------------------------------------------------------------------- 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