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

Documented return value for JNI function GetStringUTFChars is wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6u10
    • 5.0
    • docs
    • b01
    • generic
    • generic

        The JNI documentation in JDK 5.0 specifies the return type of GetStringUTFChars as "const jbyte *" when in fact it is "const char *". The URL for the erroneous documentation is:

        http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/functions.html#wp17265

        Btw, a search of the bugs database shows that this bug has been around a long time (see bug 4077872) and has either been reintroduced or was never fully fixed.

        ###@###.### 2005-05-31 21:11:00 GMT

              shommel Scott Hommel (Inactive)
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: