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

Reply via email to