On Tue, 27 Jan 2026 22:51:27 GMT, Phil Race <[email protected]> wrote:

> Update the specification of concrete SampleModel classes which over-ride 
> getSampleSize(int band) to describe how the behave.
> It isn't entirely pretty because 2 of them ignore the band parameter and 
> always have ..

I recommend specifying `IndexOutOfBoundsException` instead of AIOOBE: this 
allows implementation freedom in case an underlying storage is at some point 
changed to a `List` or some other non-array structure.

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

PR Comment: https://git.openjdk.org/jdk/pull/29457#issuecomment-3808236881

Reply via email to