On Thu, 23 Apr 2026 18:34:37 GMT, Phil Race <[email protected]> wrote:

> This is mostly spec updates.
> A PixelInterleavedSampleModel constructor did not specify what happens with 
> some illegal arguments
> 
> It was also reported that the same problem exists for the 
> createSubsetSampleModel so that is updated too, but I then went and looked at 
> this method in other SampleModel subclasses and updated those too.
> 
> The super-class SampleModel. createSubsetSampleModel is NOT updated because 
> in fact one subclass behaves differently because it supports only one band.
> That subclass is handled in a related PR, not this one.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 9f83006f
Author:    Phil Race <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/9f83006f10f5d2889529c500f963d4ad07795cae
Stats:     197 lines in 6 files changed: 194 ins; 1 del; 2 mod

8378464: PixelInterleavedSampleModel constructors and methods do not specify 
behavior when arguments are null or out of bounds

Reviewed-by: kizune, psadhukhan

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

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

Reply via email to