RFR: 8346657: Improve out of bounds exception messages for MemorySegments

Igor Rudenko duke at openjdk.org
Tue Nov 4 22:09:20 UTC 2025


On Tue, 4 Nov 2025 09:35:38 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> length being zero -- because that's a valid value for asSlice (but not for access).

does it mean `checkBounds(...)` version in `master` works incorrectly for access now? Since length == 0 is not treated as an error.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28124#discussion_r2492172778


More information about the core-libs-dev mailing list