Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 17690 invoked from network); 14 Sep 2010 22:12:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Sep 2010 22:12:50 -0000 Received: (qmail 73672 invoked by uid 500); 14 Sep 2010 22:12:50 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 73597 invoked by uid 500); 14 Sep 2010 22:12:49 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 73590 invoked by uid 99); 14 Sep 2010 22:12:49 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Sep 2010 22:12:49 +0000 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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Sep 2010 22:12:32 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3D9B023889EB; Tue, 14 Sep 2010 22:12:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r997116 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/lang/Character.java Date: Tue, 14 Sep 2010 22:12:11 -0000 To: commits@harmony.apache.org From: hindessm@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100914221211.3D9B023889EB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hindessm Date: Tue Sep 14 22:12:10 2010 New Revision: 997116 URL: http://svn.apache.org/viewvc?rev=997116&view=rev Log: A few more fixes for minor exception differences relating to: [#HARMONY-6648] Character.codePointAt exception differences Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/lang/Character.java Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/lang/Character.java URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/lang/Character.java?rev=997116&r1=997115&r2=997116&view=diff ============================================================================== --- harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/lang/Character.java (original) +++ harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/lang/Character.java Tue Sep 14 22:12:10 2010 @@ -2226,7 +2226,7 @@ public final class Character implements } int len = seq.length; if (index < 0 || index >= len) { - throw new IndexOutOfBoundsException(); + throw new ArrayIndexOutOfBoundsException(index); } char high = seq[index++]; @@ -2267,7 +2267,7 @@ public final class Character implements */ public static int codePointAt(char[] seq, int index, int limit) { if (index < 0 || index >= limit || limit < 0 || limit > seq.length) { - throw new IndexOutOfBoundsException(); + throw new ArrayIndexOutOfBoundsException(); } char high = seq[index++]; @@ -2309,7 +2309,7 @@ public final class Character implements } int len = seq.length(); if (index < 1 || index > len) { - throw new IndexOutOfBoundsException(); + throw new StringIndexOutOfBoundsException(index); } char low = seq.charAt(--index); @@ -2351,7 +2351,7 @@ public final class Character implements } int len = seq.length; if (index < 1 || index > len) { - throw new IndexOutOfBoundsException(); + throw new ArrayIndexOutOfBoundsException(index); } char low = seq[--index]; @@ -2398,7 +2398,7 @@ public final class Character implements } int len = seq.length; if (index <= start || index > len || start < 0 || start >= len) { - throw new IndexOutOfBoundsException(); + throw new ArrayIndexOutOfBoundsException(); } char low = seq[--index];