mirror of
https://github.com/openjdk/jdk8u.git
synced 2025-12-10 10:44:16 -06:00
8297856: Improve handling of Bidi characters
Reviewed-by: mbalao, andrew Backport-of: 244b89fc786894cb8cca742f91875ebb98b603ff
This commit is contained in:
parent
9d59e5b0a9
commit
dc7013e0d9
@ -3391,7 +3391,7 @@ public class BidiBase {
|
||||
levelStart + " is out of range 0 to " +
|
||||
(objects.length-1));
|
||||
}
|
||||
if (0 > count || objects.length < (objectStart+count)) {
|
||||
if (0 > count || objects.length - count < objectStart) {
|
||||
throw new IllegalArgumentException("Value count " +
|
||||
levelStart + " is out of range 0 to " +
|
||||
(objects.length - objectStart));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user