On Tue, 4 Nov 2025 09:17:27 GMT, Igor Rudenko <[email protected]> wrote:

> Logic for creating IndexOutOfBoundsException in MemorySegment is reworked:
> - separate logic of checking bounds and constructing exception messages for 
> both `access` and `slice` cases 
> - idea presented in 
> [JDK-8288534](https://bugs.openjdk.org/browse/JDK-8288534) slightly reworked 
> with preservation of the original approach

This pull request has now been integrated.

Changeset: 170ebdc5
Author:    Igor Rudenko <[email protected]>
Committer: Per Minborg <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/170ebdc5b7b5e54cc7bec60944898d35a24d760b
Stats:     65 lines in 4 files changed: 39 ins; 5 del; 21 mod

8346657: Improve out of bounds exception messages for MemorySegments

Reviewed-by: jvernee, liach, mcimadamore

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

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

Reply via email to