On Fri, 2 Dec 2022 03:34:50 GMT, Sergey Bylokhov <[email protected]> wrote:

> The specification for `java.awt.image.ColorModel#getComponentSize(int)` 
> states that an ArrayIndexOutOfBoundsException is thrown "if componentIdx is 
> greater than the number of components or less than zero". The condition 
> should actually be "if componentIdx is greater than OR EQUAL TO the number of 
> components or less than zero."

This pull request has now been integrated.

Changeset: 5a3439db
Author:    Sergey Bylokhov <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/5a3439db9fef3e54650df4019e31311b60a0ec1d
Stats:     57 lines in 2 files changed: 54 ins; 1 del; 2 mod

4677581: ColorModel.getComponentSize()-wrong conditions for 
ArrayIndexOutOfBoundsExceptio

Reviewed-by: prr

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

PR: https://git.openjdk.org/jdk/pull/11470

Reply via email to