[jdk19] RFR: 8289601: SegmentAllocator::allocateUtf8String(String str) should be clarified for strings containing \0
Jim Laskey
jlaskey at openjdk.org
Tue Jul 5 23:22:59 UTC 2022
On Mon, 4 Jul 2022 13:01:34 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> This PR updates the spec and implementation to throw an `IllegalArgumentException` when an attempt is made to convert a Java string containing null characters to a C string.
>
> Testing: local run of the `jdk_foreign` test suite.
Is UTF-8 E0 C0 reasonable in this case? Or at least an option?
-------------
PR: https://git.openjdk.org/jdk19/pull/107
More information about the core-libs-dev
mailing list