8230613: Better ASCII conversions
Reviewed-by: dfuchs, naoto, mschoene, rhalade
This commit is contained in:
parent
151b6f1402
commit
fa3d79c2f8
@ -186,7 +186,7 @@ public final class Punycode {
|
|||||||
for(j=0; j<srcLength; ++j) {
|
for(j=0; j<srcLength; ++j) {
|
||||||
if(srcCPCount==MAX_CP_COUNT) {
|
if(srcCPCount==MAX_CP_COUNT) {
|
||||||
/* too many input code points */
|
/* too many input code points */
|
||||||
throw new IndexOutOfBoundsException();
|
throw new ParseException("Too many input code points", -1);
|
||||||
}
|
}
|
||||||
c=src.charAt(j);
|
c=src.charAt(j);
|
||||||
if(isBasic(c)) {
|
if(isBasic(c)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user