RFR: 8346657: Improve out of bounds exception messages for MemorySegments [v11]

duke duke at openjdk.org
Tue Dec 2 20:21:31 UTC 2025


On Tue, 2 Dec 2025 13:10:09 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
>
> Igor Rudenko has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Improvements according to reviewer's advices

@hextriclosan 
Your change (at version 6a89618346637e8412c7e5d4cb715838be634cfb) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/jdk/pull/28124#issuecomment-3603810406


More information about the core-libs-dev mailing list