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

Static build of libzip is missing JNI_OnLoad_zip entry point

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Resolved In Build:
      b120

      Description

      The ZipFile.c was recently removed from libzip build.
      It contained the JNI_OnLoad_zip entrypoint used to flag built in static libraries. Moving the missing declaration to zip_util.c is a sufficient fix.

      diff --git a/src/java.base/share/native/libzip/zip_util.c b/src/java.base/share/native/libzip/zip_util.c
      --- a/src/java.base/share/native/libzip/zip_util.c
      +++ b/src/java.base/share/native/libzip/zip_util.c
      @@ -77,6 +77,11 @@
       static jint INITIAL_META_COUNT = 2; /* initial number of entries in meta name array */
       
       /*
      + * Declare library specific JNI_Onload entry if static build
      + */
      +DEF_STATIC_JNI_OnLoad
      +
      +/*
        * The ZFILE_* functions exist to provide some platform-independence with
        * respect to file access needs.
        */

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              naoto Naoto Sato
              Reporter:
              gadams Gary Adams (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: