From a794a398495bc1af0f9c2a3a8ea1a925adc5ad23 Mon Sep 17 00:00:00 2001 From: jimmyk Date: Fri, 2 Feb 2024 10:17:19 -0500 Subject: [PATCH] Fixes return value type in JNI method Java_com_sun_java_util_jar_pack_NativeUnpack_getUnusedInput expects a return value of type jobject. One line in the method was returning false. Some compilers do not accept this so it has been changed to return null instead. Signed-off-by: jimmyk --- jdk/src/share/native/com/sun/java/util/jar/pack/jni.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/jdk/src/share/native/com/sun/java/util/jar/pack/jni.cpp b/jdk/src/share/native/com/sun/java/util/jar/pack/jni.cpp index 5fbc7261fb3..deb7765665f 100644 --- a/jdk/src/share/native/com/sun/java/util/jar/pack/jni.cpp +++ b/jdk/src/share/native/com/sun/java/util/jar/pack/jni.cpp @@ -22,6 +22,13 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ + +/* + * =========================================================================== + * (c) Copyright IBM Corp. 2024, 2024 All Rights Reserved + * =========================================================================== + */ + #include #include @@ -292,7 +299,7 @@ Java_com_sun_java_util_jar_pack_NativeUnpack_getUnusedInput(JNIEnv *env, jobject if (uPtr->aborting()) { THROW_IOE(uPtr->get_abort_message()); - return false; + return null; } // We have fetched all the files.