mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8255242: Bidi.requiresBidi has misleading exception message
Reviewed-by: bchristi
This commit is contained in:
parent
60d014242b
commit
57d903bdd9
2 changed files with 10 additions and 3 deletions
|
@ -4541,7 +4541,8 @@ public class BidiBase {
|
|||
|
||||
if (0 > start || start > limit || limit > text.length) {
|
||||
throw new IllegalArgumentException("Value start " + start +
|
||||
" is out of range 0 to " + limit);
|
||||
" is out of range 0 to " + limit + ", or limit " + limit +
|
||||
" is beyond the text length " + text.length);
|
||||
}
|
||||
|
||||
for (int i = start; i < limit; ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue