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

Jorn Vernee jvernee at openjdk.org
Mon Jul 17 23:07: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)`.

This pull request has now been integrated.

Changeset: 79831946
Author:    Jorn Vernee <jvernee at openjdk.org>
URL:       https://git.openjdk.org/panama-foreign/commit/79831946e966f1a716aedc46bd0b982714a5673d
Stats:     39 lines in 2 files changed: 33 ins; 1 del; 5 mod

8312186: TestStringEncodingFails for UTF-32

Reviewed-by: mcimadamore

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

PR: https://git.openjdk.org/panama-foreign/pull/847


More information about the panama-dev mailing list