mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8198989: Provide more diagnostic IAE messages
Reviewed-by: lancea
This commit is contained in:
parent
de3604ea0c
commit
6744ceac88
2 changed files with 14 additions and 7 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue