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

Implicit function declaration in jni_util.c

    Details

    • Introduced In Version:
    • Resolved In Build:
      master

      Backports

        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

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: