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

Implicit function declaration in jni_util.c

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: openjdk7u, 8
    • Fix Version/s: openjdk7u
    • Component/s: core-libs
    • Labels:
      None
    • Introduced In Version:
    • Resolved In Build:
      master

      Description

      ../../../src/share/native/common/jni_util.c: In function 'JNU_ThrowByNameWithMessageAndLastError':
      ../../../src/share/native/common/jni_util.c:160:16: error: implicit declaration of function 'getLastErrorString'; did you mean 'JVM_GetLastErrorString'? [-Werror=implicit-function-declaration]
           size_t n = getLastErrorString(buf, sizeof(buf));
                      ^~~~~~~~~~~~~~~~~~
                      JVM_GetLastErrorString

      8157749 introduced use of GetLastErrorString in jni_util.c, but didn't add an include for io_util.h where it is declared

        Attachments

          Activity

            People

            • Assignee:
              andrew Andrew Hughes
              Reporter:
              andrew Andrew Hughes
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: