[foreign-memaccess+abi] RFR: 8312186: TestStringEncodingFails for UTF-32

Maurizio Cimadamore mcimadamore at openjdk.org
Mon Jul 17 22:53:19 UTC 2023


On Mon, 17 Jul 2023 19:30:12 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> The test is failing because there are now several UTF 32-based char sets in StandardCharsets, and the  FFM API can not handle these yet.
> 
> This patch adds support for the UTF 32 based char sets to `MemorySegment::getString(long, Charset)`, `MemorySegment::setString(long, String, Charset)`, and `SegmentAllocator::allocateFrom(String, Charset)`.

Looks great!

-------------

Marked as reviewed by mcimadamore (Committer).

PR Review: https://git.openjdk.org/panama-foreign/pull/847#pullrequestreview-1533812915


More information about the panama-dev mailing list