harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r997081 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/lang/Character.java
Date Tue, 14 Sep 2010 20:30:29 GMT
Author: hindessm
Date: Tue Sep 14 20:30:28 2010
New Revision: 997081

URL: http://svn.apache.org/viewvc?rev=997081&view=rev
Log:
Fixing "[#HARMONY-6648] Character.codePointAt exception differences" as 
it isn't unreasonable to be compatible with the RI in this case.  See
also http://markmail.org/message/7s6533mswansmnm3

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=997081&r1=997080&r2=997081&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 20:30:28 2010
@@ -2184,7 +2184,7 @@ public final class Character implements 
         }
         int len = seq.length();
         if (index < 0 || index >= len) {
-            throw new IndexOutOfBoundsException();
+            throw new StringIndexOutOfBoundsException(index);
         }
 
         char high = seq.charAt(index++);



Mime
View raw message