Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8038005

Improve JNI spec for string methods

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:

      Description

      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().

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                fheidric Felipe Heidrich (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: