[PATCH 1/4] fix build errors with gcc6
Guido Trentalancia
guido at trentalancia.net
Wed May 11 15:25:12 UTC 2016
The following (RFC) patch aims to fix a build error when using gcc6:
/home/guido/new/jdk8u60/mercurial-rep/tmp/jdk8u/jdk/src/share/native/com/sun/java/util/jar/pack/jni.cpp: In function ‘_jobject* Java_com_sun_java_util_jar_pack_NativeUnpack_getUnusedInput(JNIEnv*, jobject)’:
/home/guido/new/jdk8u60/mercurial-rep/tmp/jdk8u/jdk/src/share/native/com/sun/java/util/jar/pack/jni.cpp:295:12: error: cannot convert ‘bool’ to ‘jobject {aka _jobject*}’ in return
return false;
^~~~~
Signed-off-by: Guido Trentalancia <guido at trentalancia.net>
---
jdk/src/share/native/com/sun/java/util/jar/pack/jni.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- jdk8u/jdk/src/share/native/com/sun/java/util/jar/pack/jni.cpp.orig 2016-05-10 23:53:03.603809077 +0200
+++ jdk8u/jdk/src/share/native/com/sun/java/util/jar/pack/jni.cpp 2016-05-10 23:53:19.277033625 +0200
@@ -292,7 +292,7 @@ Java_com_sun_java_util_jar_pack_NativeUn
if (uPtr->aborting()) {
THROW_IOE(uPtr->get_abort_message());
- return false;
+ return 0;
}
// We have fetched all the files.
More information about the jdk8u-dev
mailing list