gcc/libjava/java/lang
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
..
ref
reflect Proxy.java, [...]: Don't catch java.lang.ThreadDeath. 2005-02-22 21:11:29 +00:00
AbstractMethodError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ArithmeticException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ArrayIndexOutOfBoundsException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ArrayStoreException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
AssertionError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Boolean.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Byte.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Character.java Character.java, [...]: Reorder "final static" to "static final". 2004-11-24 13:33:01 +00:00
CharSequence.java
Class.h Class.h (_Jv_GetMethodString): Updated declaration. 2005-02-17 19:17:08 +00:00
Class.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ClassCastException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ClassCircularityError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ClassFormatError.java
ClassLoader.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ClassNotFoundException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Cloneable.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
CloneNotSupportedException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Comparable.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Compiler.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Double.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
dtoa.c
e_acos.c
e_asin.c
e_atan2.c
e_exp.c
e_fmod.c
e_log.c
e_pow.c
e_rem_pio2.c
e_remainder.c
e_scalb.c
e_sqrt.c
EcosProcess.java
Error.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Exception.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ExceptionInInitializerError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
fdlibm.h
Float.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ieeefp.h Add m32r support. 2004-10-21 09:36:47 +00:00
IllegalAccessError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
IllegalAccessException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
IllegalArgumentException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
IllegalMonitorStateException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
IllegalStateException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
IllegalThreadStateException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
IncompatibleClassChangeError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
IndexOutOfBoundsException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
InheritableThreadLocal.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
InstantiationError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
InstantiationException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Integer.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
InternalError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
InterruptedException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
k_cos.c
k_rem_pio2.c
k_sin.c
k_tan.c
LinkageError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Long.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Math.java 2004-10-22 Michael Koch <konqueror@gmx.de> 2004-10-22 17:14:29 +00:00
mprec.c
mprec.h
natCharacter.cc
natClass.cc Class.h (_Jv_GetMethodString): Updated declaration. 2005-02-17 19:17:08 +00:00
natClassLoader.cc defineclass.cc (handleClassBegin): Use _Jv_RegisterInitiatingLoader. 2005-02-07 21:29:04 +00:00
natDouble.cc
natEcosProcess.cc
natFloat.cc
natMath.cc
natObject.cc natObject.cc (_Jv_ObjectCheckMonitor): Initialize the sync_info element of the object if needed. 2005-01-05 05:09:09 +00:00
natPosixProcess.cc natPosixProcess.cc (waitForSignal): Ignore return value of sigsuspend. 2004-09-14 13:09:31 -07:00
natRuntime.cc re PR libgcj/16923 (-D* Options passed to JNI_CreateJavaVM are ignored) 2005-02-23 17:36:26 +00:00
natString.cc * Merged gcj-abi-2-dev-branch to trunk. 2004-11-25 03:47:08 +00:00
natStringBuffer.cc
natSystem.cc natSystem.cc (getenv0): Don't assume environment variable is Latin 1 coded. 2004-06-15 13:43:33 +00:00
natThread.cc jni.h (_Jv_JNIEnv::bottom_locals): New field. 2005-01-14 07:36:27 +00:00
natVMClassLoader.cc defineclass.cc (handleClassBegin): Use _Jv_RegisterInitiatingLoader. 2005-02-07 21:29:04 +00:00
natVMSecurityManager.cc
natWin32Process.cc
NegativeArraySizeException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
NoClassDefFoundError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
NoSuchFieldError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
NoSuchFieldException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
NoSuchMethodError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
NoSuchMethodException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
NullPointerException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Number.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
NumberFormatException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Object.h * java/lang/Object.h (_JvObjectPrefix): Declare as extern "Java". 2005-02-22 18:29:43 +00:00
Object.java Object.java: Added javadocs all over (merged from GNU classpath). 2004-11-16 21:37:29 +00:00
OutOfMemoryError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Package.java PR libgcj/12016, PR libgcj/18405, PR libgcj/17738: 2005-01-10 19:39:26 +00:00
PosixProcess.java re PR libgcj/11801 (Problems with Process.waitFor() and exitValue()) 2004-08-12 16:20:11 +00:00
Process.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Runnable.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Runtime.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
RuntimeException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
RuntimePermission.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
s_atan.c
s_ceil.c
s_copysign.c
s_cos.c
s_fabs.c
s_floor.c
s_rint.c
s_scalbn.c
s_sin.c
s_tan.c
SecurityException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
SecurityManager.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
sf_fabs.c
sf_rint.c
Short.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
StackOverflowError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
StackTraceElement.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
StrictMath.java Math.java, [...]: Reworked import statements, HTML in javadocs and modifier orders. 2004-10-18 10:41:56 +00:00
String.java String.java (rehash): Removed. 2004-11-23 21:33:01 +00:00
StringBuffer.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
StringIndexOutOfBoundsException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
strtod.c
System.java System.java: Revert accidential change. 2004-10-18 11:09:11 +00:00
Thread.java re PR libgcj/17784 (Thread.interrupt doesn't do security checks) 2005-01-13 20:26:38 +00:00
ThreadDeath.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ThreadGroup.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ThreadLocal.java Math.java, [...]: Reworked import statements, HTML in javadocs and modifier orders. 2004-10-18 10:41:56 +00:00
Throwable.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
UnknownError.java
UnsatisfiedLinkError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
UnsupportedClassVersionError.java
UnsupportedOperationException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
VerifyError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
VirtualMachineError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
VMClassLoader.java re PR libgcj/19681 (extension loading currently incorrect) 2005-02-02 20:59:41 +00:00
VMCompiler.java Subject.java (doAsPrivileged): If acc is null, create a new AccessControlContext. 2005-02-16 18:51:25 +00:00
VMSecurityManager.java * Merged gcj-abi-2-dev-branch to trunk. 2004-11-25 03:47:08 +00:00
VMThrowable.java
Void.java Math.java, [...]: Reworked import statements, HTML in javadocs and modifier orders. 2004-10-18 10:41:56 +00:00
w_acos.c
w_asin.c
w_atan2.c
w_exp.c
w_fmod.c
w_log.c
w_pow.c
w_remainder.c
w_sqrt.c
Win32Process.java