-
Bug
-
Resolution: Fixed
-
P3
-
19
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8289626 | 20 | Maurizio Cimadamore | P3 | Resolved | Fixed | b05 |
JDK-8291375 | 19.0.2 | Maurizio Cimadamore | P3 | Resolved | Fixed | b01 |
JDK-8291212 | 19.0.1 | Maurizio Cimadamore | P3 | Resolved | Fixed | b04 |
As per the spec of
https://download.java.net/java/early_access/jdk19/docs/api/java.base/java/lang/foreign/SegmentAllocator.html#allocateUtf8String(java.lang.String)
the default implementation for this method copies the contents of the provided Java string into a new memory segment obtained by calling this.allocate(str.length() + 1).
Expectations :
invoking allocateUtf8String(String str) shall delegate a call to allocate(long)
Actual :
The method allocate(long) not invoked, instead allocate(long, long) is invoked.
https://download.java.net/java/early_access/jdk19/docs/api/java.base/java/lang/foreign/SegmentAllocator.html#allocateUtf8String(java.lang.String)
the default implementation for this method copies the contents of the provided Java string into a new memory segment obtained by calling this.allocate(str.length() + 1).
Expectations :
invoking allocateUtf8String(String str) shall delegate a call to allocate(long)
Actual :
The method allocate(long) not invoked, instead allocate(long, long) is invoked.
- backported by
-
JDK-8289626 SegmentAllocator:allocateUtf8String(String str) default behavior mismatch to spec
- Resolved
-
JDK-8291212 SegmentAllocator:allocateUtf8String(String str) default behavior mismatch to spec
- Resolved
-
JDK-8291375 SegmentAllocator:allocateUtf8String(String str) default behavior mismatch to spec
- Resolved
- clones
-
JDK-8289188 SegmentAllocator:allocateArray(*) default behavior mismatch to spec
- Resolved
(1 links to)