pkgsrc/lang/japhar/patches/patch-lib_libnative_java.lang_system.c

14 lines
430 B
C
Raw Normal View History

2013-02-26 12:09:09 +01:00
$NetBSD: patch-lib_libnative_java.lang_system.c,v 1.1 2013/02/26 11:09:10 joerg Exp $
--- lib/libnative/java.lang/system.c.orig 2013-02-25 20:27:29.000000000 +0000
+++ lib/libnative/java.lang/system.c
@@ -260,7 +260,7 @@ Java_java_lang_System_identityHashCode(J
if (obj == NULL)
{
throw_Exception(env, "java/lang/NullPointerException", NULL);
- return;
+ return -1;
}
obj_to_object(obj, jobj);