* java/lang/reflect/natConstructor.cc (newInstance): Use
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Jan 2000 23:50:31 +0000 (23:50 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Jan 2000 23:50:31 +0000 (23:50 +0000)
commitac88f99cd915a19abd61299aa47e7aab4cf7fa2e
treee63221042f53661dc5ac90918d840d796a598554
parente3c54aa414f56153766e5351323deab0530702a3
* java/lang/reflect/natConstructor.cc (newInstance): Use
_Jv_CallAnyMethodA.
* include/jvm.h: Declare _Jv_CallAnyMethodA.
* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
from _Jv_CallNonvirtualMethodA.  Changed interface; overloaded.
Include <jni.h>.
(COPY): Removed.
(invoke): Use _Jv_CallAnyMethodA.
(VAL): Redefined.
* java/lang/Class.h (Class): Declare JvGetFirstStaticField,
JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
functions.
(struct _Jv_Method): Added getNextMethod method.
(JvNumMethods): New function.
(JvGetFirstMethod): Likewise.
* gcj/field.h (JvGetFirstStaticField): New function.
(JvNumStaticFields): Likewise.
(getNextField): Renamed from getNextInstanceField.
(struct _Jv_Field): New method getClass.
* jni.cc: Wrote many new functions.
* include/jni.h (JNI_TRUE): Define.
(JNI_FALSE): Likewise.
(jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
jcharArray, jfloatArray, jdoubleArray): New typedefs.
(jfieldID, jmethodID): Likewise.
(JNI_COMMIT, JNI_ABORT): New defines.
(JNINativeMethod): New struct.
(struct JNINativeInterface): Correctly declared more entries.
(class _Jv_JNIEnv): Added `ex' member.
(JNI_VERSION_1_1): New define.
(JNI_VERSION_1_2): Likewise.

* boehm.cc (_Jv_MarkObj): Use getNextField, not
getNextInstanceField.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31553 138bc75d-0d04-0410-961f-82ee72b054a4
libjava/ChangeLog
libjava/boehm.cc
libjava/gcj/field.h
libjava/gcj/method.h
libjava/include/jni.h
libjava/include/jvm.h
libjava/java/lang/Class.h
libjava/java/lang/reflect/natConstructor.cc
libjava/java/lang/reflect/natMethod.cc
libjava/jni.cc