gcc/libjava/testsuite/libjava.jni
Tom Tromey 3141ed0fe0 re PR java/18278 (JNI functions cannot return a weak reference)
gcc/java:
	PR java/18278:
	* expr.c (build_jni_stub): Unwrap the return value.
	* java-tree.h (soft_unwrapjni_node): New define.
	(enum java_tree_index): Added JTI_SOFT_UNWRAPJNI_NODE.
	* decl.c (java_init_decl_processing): Initialize
	soft_unwrapjni_node.
libjava:
	PR java/18278:
	* testsuite/libjava.jni/pr18278.out: New file.
	* testsuite/libjava.jni/pr18278.c: New file.
	* testsuite/libjava.jni/pr18278.java: New file.
	* include/jvm.h (_Jv_UnwrapJNIweakReference): Declare.
	* jni.cc (_Jv_UnwrapJNIweakReference): New function.
	(call): Unwrap return value if needed.

From-SVN: r107676
2005-11-29 18:34:58 +00:00
..
invocation re PR libgcj/16923 (-D* Options passed to JNI_CreateJavaVM are ignored) 2005-02-23 17:36:26 +00:00
PR15133.c re PR java/15133 (gcjh generates wrong method signatures) 2004-04-30 18:19:37 +00:00
PR15133.java re PR java/15133 (gcjh generates wrong method signatures) 2004-04-30 18:19:37 +00:00
PR15133.out re PR java/15133 (gcjh generates wrong method signatures) 2004-04-30 18:19:37 +00:00
PR18116.c re PR libgcj/18116 (JNI uses dot instead of slash as the package separator) 2005-02-14 14:57:37 +00:00
PR18116.java re PR libgcj/18116 (JNI uses dot instead of slash as the package separator) 2005-02-14 14:57:37 +00:00
PR18116.out re PR libgcj/18116 (JNI uses dot instead of slash as the package separator) 2005-02-14 14:57:37 +00:00
bytebuffer.c re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
bytebuffer.java re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
bytebuffer.out re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
calls.c natMethod.cc (_Jv_CallAnyMethodA): Allocate a full jvalue for each argument. 2003-02-28 17:26:29 +00:00
calls.java natMethod.cc (_Jv_CallAnyMethodA): Allocate a full jvalue for each argument. 2003-02-28 17:26:29 +00:00
calls.out
cxxtest.cc For PR libgcj/5103: 2001-12-14 21:56:29 +00:00
cxxtest.java For PR libgcj/5103: 2001-12-14 21:56:29 +00:00
cxxtest.out For PR libgcj/5103: 2001-12-14 21:56:29 +00:00
directbuffer.c re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
directbuffer.java re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
directbuffer.out re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
field.c calls.c (Java_calls_docall): Define with JNIEXPORT and JNICALL method attributes. 2003-01-24 17:39:49 +00:00
field.java field.out: New file. 2001-03-23 05:57:00 +00:00
field.out field.out: New file. 2001-03-23 05:57:00 +00:00
final_method.c calls.c (Java_calls_docall): Define with JNIEXPORT and JNICALL method attributes. 2003-01-24 17:39:49 +00:00
final_method.java
final_method.out
findclass.c calls.c (Java_calls_docall): Define with JNIEXPORT and JNICALL method attributes. 2003-01-24 17:39:49 +00:00
findclass.java
findclass.out
iface.c re PR libgcj/15001 ([3.4 only] Using JNI with interpreter and interface methods yields SIGSEGV) 2004-12-21 00:49:45 +00:00
iface.java re PR libgcj/15001 ([3.4 only] Using JNI with interpreter and interface methods yields SIGSEGV) 2004-12-21 00:49:45 +00:00
iface.out re PR libgcj/15001 ([3.4 only] Using JNI with interpreter and interface methods yields SIGSEGV) 2004-12-21 00:49:45 +00:00
invoke.c calls.c (Java_calls_docall): Define with JNIEXPORT and JNICALL method attributes. 2003-01-24 17:39:49 +00:00
invoke.java
invoke.out
jni.exp jni.exp (gcj_jni_test_one): For darwin, use -shared-libgcc not -lgcc_s, and explain why. 2005-10-02 14:40:55 -07:00
jniutf.c jniutf.c: New file. 2003-11-14 01:43:14 +00:00
jniutf.java jniutf.c: New file. 2003-11-14 01:43:14 +00:00
jniutf.out jniutf.c: New file. 2003-11-14 01:43:14 +00:00
martin.c calls.c (Java_calls_docall): Define with JNIEXPORT and JNICALL method attributes. 2003-01-24 17:39:49 +00:00
martin.java
martin.out
noclass.c calls.c (Java_calls_docall): Define with JNIEXPORT and JNICALL method attributes. 2003-01-24 17:39:49 +00:00
noclass.java
noclass.out
overload.c calls.c (Java_calls_docall): Define with JNIEXPORT and JNICALL method attributes. 2003-01-24 17:39:49 +00:00
overload.java
overload.out
pr11951.c re PR libgcj/11951 (natMethod.cc (_Jv_CallAnyMethodA) should clear ffi_result before ffi_call) 2003-08-18 14:35:34 +00:00
pr11951.java pr11951.java: Add missing System.loadLibrary() call. 2004-05-05 21:58:54 +01:00
pr11951.out re PR libgcj/11951 (natMethod.cc (_Jv_CallAnyMethodA) should clear ffi_result before ffi_call) 2003-08-18 14:35:34 +00:00
pr18278.c re PR java/18278 (JNI functions cannot return a weak reference) 2005-11-29 18:34:58 +00:00
pr18278.java re PR java/18278 (JNI functions cannot return a weak reference) 2005-11-29 18:34:58 +00:00
pr18278.out re PR java/18278 (JNI functions cannot return a weak reference) 2005-11-29 18:34:58 +00:00
pr23739.c re PR libgcj/23739 (JNI: IsAssignableFrom reverses arguments) 2005-09-06 16:01:31 +00:00
pr23739.java re PR libgcj/23739 (JNI: IsAssignableFrom reverses arguments) 2005-09-06 16:01:31 +00:00
pr23739.out re PR libgcj/23739 (JNI: IsAssignableFrom reverses arguments) 2005-09-06 16:01:31 +00:00
register.c calls.c (Java_calls_docall): Define with JNIEXPORT and JNICALL method attributes. 2003-01-24 17:39:49 +00:00
register.java
register.out
simple_int.c calls.c (Java_calls_docall): Define with JNIEXPORT and JNICALL method attributes. 2003-01-24 17:39:49 +00:00
simple_int.java
simple_int.out
throwit.c calls.c (Java_calls_docall): Define with JNIEXPORT and JNICALL method attributes. 2003-01-24 17:39:49 +00:00
throwit.java
throwit.out
virtual.c calls.c (Java_calls_docall): Define with JNIEXPORT and JNICALL method attributes. 2003-01-24 17:39:49 +00:00
virtual.java
virtual.out