-
Bug
-
Resolution: Fixed
-
P3
-
22
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8324383 | 22.0.1 | Per-Ake Minborg | P3 | Resolved | Fixed | b02 |
JDK-8321999 | 22 | Per-Ake Minborg | P3 | Resolved | Fixed | b32 |
The actual behavior is IndexOutOfBoundsException - is thrown when sourceOffset<0, and IllegalArgumentException: 'Negative array size' is thrown when elementCount < 0
The spec mismatch to the actual behavior
Also, the `SegmentAllocator::allocateFrom` method with 5 parameters should IndexOutOfBoundsException if sourceOffset is negative.
- backported by
-
JDK-8321999 SegmentAllocator:allocateFrom(ValueLayout, MemorySegment,ValueLayout,long,long) spec mismatch in exception scenario
-
- Resolved
-
-
JDK-8324383 SegmentAllocator:allocateFrom(ValueLayout, MemorySegment,ValueLayout,long,long) spec mismatch in exception scenario
-
- Resolved
-
- csr for
-
JDK-8321923 SegmentAllocator:allocateFrom(ValueLayout, MemorySegment,ValueLayout,long,long) spec mismatch in exception scenario
-
- Closed
-
- duplicates
-
JDK-8322857 MemorySegment API documentation is partially updated for IAE from UOE
-
- Closed
-
- links to
-
Commit openjdk/jdk22/3909d74a
-
Commit openjdk/jdk/7edd10e5
-
Review openjdk/jdk22/42
-
Review openjdk/jdk/17079