RFR: 8368729: Add appropriate checks in java.awt.image.Kernel constructor
Sergey Bylokhov
serb at openjdk.org
Thu Nov 6 18:36:04 UTC 2025
On Thu, 6 Nov 2025 08:45:28 GMT, Jayathirth D V <jdv at openjdk.org> wrote:
>Current spec already throws IAE in one of the validation scenario, so throwing the same IAE for other input argument validation is uniform.
We usually throw an NPE when the value is null, since you can’t validate any properties on a null reference, and it’s more specific than an IAE. Moreover, NPE was thrown before, so this won’t change the behavior.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28127#discussion_r2500318684
More information about the client-libs-dev
mailing list