Integrated: 4677581: ColorModel.getComponentSize()-wrong conditions for ArrayIndexOutOfBoundsExceptio
Sergey Bylokhov
serb at openjdk.org
Wed Dec 7 09:38:51 UTC 2022
On Fri, 2 Dec 2022 03:34:50 GMT, Sergey Bylokhov <serb at openjdk.org> 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 <serb at openjdk.org>
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
More information about the client-libs-dev
mailing list