Add more precise message for IndexOutOfBoundsException in MemorySegment

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

Commit messages:
 - JDK-8346657: Improve out of bounds exception messages for MemorySegments

Changes: https://git.openjdk.org/jdk/pull/28124/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28124&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8346657
  Stats: 4 lines in 1 file changed: 2 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/28124.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28124/head:pull/28124

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

Reply via email to