mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8230613: Better ASCII conversions
Reviewed-by: dfuchs, naoto, mschoene, rhalade
This commit is contained in:
parent
151b6f1402
commit
fa3d79c2f8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue