On Mon, 27 Apr 2026 20:39:30 GMT, Sergey Bylokhov <[email protected]> wrote:

>> Phil Race has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   8377568
>
> src/java.desktop/share/classes/java/awt/image/DataBuffer.java line 615:
> 
>> 613:         if (i >= size) {
>> 614:             throw new ArrayIndexOutOfBoundsException("Invalid index 
>> (offset+i) is " +
>> 615:                 "(" + offset + " + " + i + ") which is too large for 
>> size : " + size);
> 
> The message is out of sync with a check ` i>=size?`

You're right, the condition should be `(i + offset >= size)`.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/29766#discussion_r3155523010

Reply via email to