8198989: Provide more diagnostic IAE messages

Reviewed-by: lancea
This commit is contained in:
Naoto Sato 2018-03-12 20:47:21 -07:00
parent de3604ea0c
commit 6744ceac88
2 changed files with 14 additions and 7 deletions

View file

@ -3178,6 +3178,7 @@ public final class String
return new String(StringUTF16.toBytesSupplementary(codePoint), UTF16);
}
throw new IllegalArgumentException("Not a valid Unicode code point");
throw new IllegalArgumentException(
format("Not a valid Unicode code point: 0x%X", codePoint));
}
}