Skip to content

Commit a794a39

Browse files
committed
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 <[email protected]>
1 parent 33602fc commit a794a39

File tree

1 file changed

+8
-1
lines changed
  • jdk/src/share/native/com/sun/java/util/jar/pack

1 file changed

+8
-1
lines changed

jdk/src/share/native/com/sun/java/util/jar/pack/jni.cpp

+8-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222
* or visit www.oracle.com if you need additional information or have any
2323
* questions.
2424
*/
25+
26+
/*
27+
* ===========================================================================
28+
* (c) Copyright IBM Corp. 2024, 2024 All Rights Reserved
29+
* ===========================================================================
30+
*/
31+
2532
#include <sys/types.h>
2633

2734
#include <stdio.h>
@@ -292,7 +299,7 @@ Java_com_sun_java_util_jar_pack_NativeUnpack_getUnusedInput(JNIEnv *env, jobject
292299

293300
if (uPtr->aborting()) {
294301
THROW_IOE(uPtr->get_abort_message());
295-
return false;
302+
return null;
296303
}
297304

298305
// We have fetched all the files.

0 commit comments

Comments
 (0)