RFR: 4677581: ColorModel.getComponentSize()-wrong conditions for ArrayIndexOutOfBoundsExceptio
Phil Race
prr at openjdk.org
Mon Dec 5 21:44:00 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."
Marked as reviewed by prr (Reviewer).
-------------
PR: https://git.openjdk.org/jdk/pull/11470
More information about the client-libs-dev
mailing list