mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8297856: Improve handling of Bidi characters
Reviewed-by: rhalade, mschoene, rriggs
This commit is contained in:
parent
072d64c6a9
commit
195c9b2c48
1 changed files with 1 additions and 1 deletions
|
@ -4595,7 +4595,7 @@ public class BidiBase {
|
|||
objectStart + " 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 " +
|
||||
count + " is less than zero, or objectStart + count" +
|
||||
" is beyond objects length " + objects.length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue