Details
-
Bug
-
Resolution: Fixed
-
P3
-
22
-
None
Description
The throws clauses for MemorySegment::getAtIndex methods have a slight error in that it does not specify that byteSize() is actually layout.byteSize() in some places. For example:
* @throws IndexOutOfBoundsException if {@code index * byteSize() > byteSize() - layout.byteSize()}.
should be
* @throws IndexOutOfBoundsException if {@code index * layout.byteSize() > byteSize() - layout.byteSize()}.
* @throws IndexOutOfBoundsException if {@code index * byteSize() > byteSize() - layout.byteSize()}.
should be
* @throws IndexOutOfBoundsException if {@code index * layout.byteSize() > byteSize() - layout.byteSize()}.