On Tue, 16 Jun 2026 21:24:00 GMT, Phil Race <[email protected]> wrote:

> In JDK 26 the spec for various methods in Raster were updated under 
> https://bugs.openjdk.org/browse/JDK-8369129
> 
> It was discovered that some cases did not actually check an out-of-bounds 
> bank index as specified
> There was a test for two of these cases but there was a bug which caused it 
> to get the expected exception for a different reason.
> 
> The implementation and the test are fixed.
> 
> 
> 
> ---------
> - [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: becdbb14
Author:    Phil Race <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/becdbb1496a1e49f4a23ca9e095d14797180ef2d
Stats:     49 lines in 2 files changed: 46 ins; 0 del; 3 mod

8386671: Raster factory methods fail to throw specified exceptions for invalid 
bandOffsets and bankIndices

Reviewed-by: azvegint, kizune, jdv

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

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

Reply via email to