harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
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 GMT
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];



Mime
View raw message