8255242: Bidi.requiresBidi has misleading exception message

Reviewed-by: bchristi
This commit is contained in:
Naoto Sato 2020-10-25 18:22:10 +00:00
parent 60d014242b
commit 57d903bdd9
2 changed files with 10 additions and 3 deletions

View file

@ -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) {