I would like the doc for GetStringUTFChars() to spec if the returned string is null-terminated.
Since JNI also provides a GetStringUTFLength() it would be technically possible to use the result of GetStringUTFChars() without null-termination.
Same is true for GetStringChars() /GetStringLength(). and GetStringCritical().
Since JNI also provides a GetStringUTFLength() it would be technically possible to use the result of GetStringUTFChars() without null-termination.
Same is true for GetStringChars() /GetStringLength(). and GetStringCritical().
- duplicates
-
JDK-6681965 The documentation for GetStringChars and GetStringUTFChars is unclear
-
- Closed
-
- relates to
-
JDK-6681965 The documentation for GetStringChars and GetStringUTFChars is unclear
-
- Closed
-