[jdk22] RFR: 8321786: SegmentAllocator:allocateFrom(ValueLayout, MemorySegment, ValueLayout, long, long) spec mismatch in exception scenario
Maurizio Cimadamore
mcimadamore at openjdk.org
Tue Jan 9 17:14:27 UTC 2024
On Tue, 9 Jan 2024 08:10:16 GMT, Per Minborg <pminborg at openjdk.org> wrote:
> 8321786: SegmentAllocator:allocateFrom(ValueLayout, MemorySegment,ValueLayout,long,long) spec mismatch in exception scenario
src/java.base/share/classes/java/lang/foreign/MemorySegment.java line 1944:
> 1942: * in the provided layout
> 1943: * @throws IndexOutOfBoundsException if {@code offset > byteSize() - layout.byteSize()}
> 1944: * or {@code offset < 0}
Why is UOE being removed here (and elsewhere) ?
-------------
PR Review Comment: https://git.openjdk.org/jdk22/pull/42#discussion_r1446379983
More information about the core-libs-dev
mailing list