[jdk19] RFR: 8289601: SegmentAllocator::allocateUtf8String(String str) should be clarified for strings containing \0 [v2]

Maurizio Cimadamore mcimadamore at openjdk.org
Wed Jul 6 17:11:44 UTC 2022


On Wed, 6 Jul 2022 11:09:33 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.
>
> 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.

Looks good

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

Marked as reviewed by mcimadamore (Reviewer).

PR: https://git.openjdk.org/jdk19/pull/107


More information about the core-libs-dev mailing list