8230613: Better ASCII conversions

Reviewed-by: dfuchs, naoto, mschoene, rhalade
This commit is contained in:
Aleksei Efimov 2020-02-28 14:24:39 +00:00
parent 151b6f1402
commit fa3d79c2f8

View File

@ -186,7 +186,7 @@ public final class Punycode {
for(j=0; j<srcLength; ++j) {
if(srcCPCount==MAX_CP_COUNT) {
/* too many input code points */
throw new IndexOutOfBoundsException();
throw new ParseException("Too many input code points", -1);
}
c=src.charAt(j);
if(isBasic(c)) {