From 629000d19a6df592b7f35efcd097341ce6d74fc8 Mon Sep 17 00:00:00 2001 From: Maurizio Cimadamore Date: Fri, 10 May 2024 17:07:33 +0100 Subject: [PATCH] Fix another index check --- src/java.base/share/classes/java/lang/foreign/MemoryLayout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java.base/share/classes/java/lang/foreign/MemoryLayout.java b/src/java.base/share/classes/java/lang/foreign/MemoryLayout.java index 241cea672e01a..123c5897f26e5 100644 --- a/src/java.base/share/classes/java/lang/foreign/MemoryLayout.java +++ b/src/java.base/share/classes/java/lang/foreign/MemoryLayout.java @@ -830,7 +830,7 @@ public sealed interface MemoryLayout * selected layout and {@code S} is the size of the accessed memory segment. *
  • If the provided layout path has an open path element whose size is {@code S}, * its corresponding trailing {@code long} coordinate value {@code I} must be - * {@code 0 < I < S}, or an {@link IndexOutOfBoundsException} is thrown.
  • + * {@code 0 <= I < S}, or an {@link IndexOutOfBoundsException} is thrown. * * * @apiNote The returned method handle can be used to obtain a memory segment slice,