gcc/libjava/testsuite/libjava.jni
Thomas Fitzsimmons bc71e4a22b re PR libgcj/16923 (-D* Options passed to JNI_CreateJavaVM are ignored)
2005-02-23  Thomas Fitzsimmons  <fitzsim@redhat.com>

	PR libgcj/16923
	* gcj.texi (Invocation): Add descriptions of JvVMInitArgs and
	JvVMOption.

2005-02-23  Thomas Fitzsimmons  <fitzsim@redhat.com>

	PR libgcj/16923
	* jni.cc (JNI_CreateJavaVM): Check JNI version.  Cast args to
	JvVMInitArgs.  Pass args to _Jv_CreateJavaVM and check return
	value.  Move argument parsing code to prims.cc.
	* prims.cc (no_properties): Remove.
	(_Jv_Compiler_Properties): Initialize to NULL.
	(_Jv_Properties_Count): Initialize to 0.
	(parse_verbose_args): New function.
	(parse_init_args): New function.
	(_Jv_CreateJavaVM): Call parse_init_args.
	(_Jv_RunMain): Check return value of _Jv_CreateJavaVM.
	* gcj/cni.h (JvVMOption): New struct.
	(JvVMInitArgs): Likewise.
	(JvCreateJavaVM): Declare vm_args as JvVMInitArgs* rather than
	void*.
	* libjava/gcj/javaprims.h (_Jv_VMOption): New struct.
	(_Jv_VMInitArgs): Likewise.
	* include/java-props.h (_Jv_Properties_Count): Declare.
	* java/lang/natRuntime.cc (insertSystemProperties): Use
	_Jv_Properties_Count in for loop exit condition.
	* testsuite/libjava.jni/jni.exp
	(gcj_invocation_compile_c_to_binary): New procedure.
	(gcj_invocation_test_one): Likewise.
	(gcj_jni_run): Run JNI invocation API tests.
	* testsuite/libjava.jni/invocation/PR16923.c,
	testsuite/libjava.jni/invocation/PR16923.java,
	testsuite/libjava.jni/invocation/PR16923.out: New test.

From-SVN: r95459
2005-02-23 17:36:26 +00:00
..
invocation re PR libgcj/16923 (-D* Options passed to JNI_CreateJavaVM are ignored) 2005-02-23 17:36:26 +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
calls.java
calls.out
cxxtest.cc
cxxtest.java
cxxtest.out
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
field.java
field.out
final_method.c
final_method.java
final_method.out
findclass.c
findclass.java
findclass.out
iface.c
iface.java
iface.out
invoke.c
invoke.java
invoke.out
jni.exp re PR libgcj/16923 (-D* Options passed to JNI_CreateJavaVM are ignored) 2005-02-23 17:36:26 +00:00
jniutf.c
jniutf.java
jniutf.out
martin.c
martin.java
martin.out
noclass.c
noclass.java
noclass.out
overload.c
overload.java
overload.out
pr11951.c
pr11951.java
pr11951.out
PR15133.c
PR15133.java
PR15133.out
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
register.c
register.java
register.out
simple_int.c
simple_int.java
simple_int.out
throwit.c
throwit.java
throwit.out
virtual.c
virtual.java
virtual.out