Integrated: 8346657: Improve out of bounds exception messages for MemorySegments
Igor Rudenko
duke at openjdk.org
Wed Dec 3 10:40:47 UTC 2025
On Tue, 4 Nov 2025 09:17:27 GMT, Igor Rudenko <duke at openjdk.org> 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 <iostream64 at gmail.com>
Committer: Per Minborg <pminborg at openjdk.org>
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
More information about the core-libs-dev
mailing list