On Wed, 6 Jul 2022 11:09:33 GMT, Jorn Vernee <jver...@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. > > Jorn Vernee has updated the pull request incrementally with two additional > commits since the last revision: > > - Add javadoc > - Revert "Throw IAE when converting string with null byte." > > This reverts commit 70f83902a38e863b96fedb312982f7ac683ed068. That is indeed the simplest option, and the more preferable one given the performance cost of checking. ------------- Marked as reviewed by psandoz (Reviewer). PR: https://git.openjdk.org/jdk19/pull/107