[jdk19] RFR: 8289601: SegmentAllocator::allocateUtf8String(String str) should be clarified for strings containing \0
Jorn Vernee
jvernee at openjdk.org
Mon Jul 4 13:26:53 UTC 2022
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.
-------------
Commit messages:
- Throw IAE when converting string with null byte.
Changes: https://git.openjdk.org/jdk19/pull/107/files
Webrev: https://webrevs.openjdk.org/?repo=jdk19&pr=107&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8289601
Stats: 32 lines in 3 files changed: 25 ins; 6 del; 1 mod
Patch: https://git.openjdk.org/jdk19/pull/107.diff
Fetch: git fetch https://git.openjdk.org/jdk19 pull/107/head:pull/107
PR: https://git.openjdk.org/jdk19/pull/107
More information about the core-libs-dev
mailing list