Details
-
Bug
-
Resolution: Fixed
-
P3
-
19, 19.0.1
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8288923 | 20 | Maurizio Cimadamore | P3 | Resolved | Fixed | b03 |
JDK-8291282 | 19.0.2 | Maurizio Cimadamore | P3 | Resolved | Fixed | b01 |
JDK-8291131 | 19.0.1 | Maurizio Cimadamore | P3 | Resolved | Fixed | b04 |
Description
As per spec : https://download.java.net/java/early_access/jdk19/docs/api/java.base/java/lang/foreign/SegmentAllocator.html#allocate(long)
Throws:
IllegalArgumentException - if bytesSize < 0
Observed that IAEx is thrown only for SegmentAllocator created with implicitAllocator() not for others.
Attached the sample to demonstrate the issue.
Throws:
IllegalArgumentException - if bytesSize < 0
Observed that IAEx is thrown only for SegmentAllocator created with implicitAllocator() not for others.
Attached the sample to demonstrate the issue.
Attachments
Issue Links
- backported by
-
JDK-8288923 SegmentAllocator:allocate(long bytesSize) not throwing IAEx when bytesSize < 0
- Resolved
-
JDK-8291131 SegmentAllocator:allocate(long bytesSize) not throwing IAEx when bytesSize < 0
- Resolved
-
JDK-8291282 SegmentAllocator:allocate(long bytesSize) not throwing IAEx when bytesSize < 0
- Resolved
- relates to
-
JDK-8282192 Implementation of Foreign Function & Memory API (Preview)
- Closed
(1 links to)