-
Bug
-
Resolution: Duplicate
-
P3
-
9
-
b120
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.
*/
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.
*/
- duplicates
-
JDK-8157964 Static build of libzip is missing JNI_OnLoad_zip entry point
-
- Closed
-