jni.cc (_Jv_JNI_NewObjectArray): Fixed return type.
* jni.cc (_Jv_JNI_NewObjectArray): Fixed return type. * include/jni.h (struct JNINativeInterface) <NewObjectArray>: Now returns jobjectArray. (_Jv_JNIEnv::NewObjectArray): Likewise. From-SVN: r90041
This commit is contained in:
parent
939347bb51
commit
cb0be2e79f
@ -1,3 +1,10 @@
|
||||
2004-11-03 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* jni.cc (_Jv_JNI_NewObjectArray): Fixed return type.
|
||||
* include/jni.h (struct JNINativeInterface) <NewObjectArray>: Now
|
||||
returns jobjectArray.
|
||||
(_Jv_JNIEnv::NewObjectArray): Likewise.
|
||||
|
||||
2004-11-01 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* verify.cc (state::check_no_uninitialized_objects): Removed.
|
||||
|
@ -555,7 +555,7 @@ struct JNINativeInterface
|
||||
const char * (JNICALL *GetStringUTFChars) (JNIEnv *, jstring, jboolean *);
|
||||
void (JNICALL *ReleaseStringUTFChars) (JNIEnv *, jstring, const char *);
|
||||
jsize (JNICALL *GetArrayLength) (JNIEnv *, jarray);
|
||||
jarray (JNICALL *NewObjectArray) (JNIEnv *, jsize, jclass, jobject);
|
||||
jobjectArray (JNICALL *NewObjectArray) (JNIEnv *, jsize, jclass, jobject);
|
||||
jobject (JNICALL *GetObjectArrayElement) (JNIEnv *, jobjectArray, jsize);
|
||||
void (JNICALL *SetObjectArrayElement) (JNIEnv *, jobjectArray, jsize,
|
||||
jobject);
|
||||
@ -1380,7 +1380,7 @@ public:
|
||||
jsize GetArrayLength (jarray val0)
|
||||
{ return p->GetArrayLength (this, val0); }
|
||||
|
||||
jarray NewObjectArray (jsize val0, jclass cl1, jobject obj2)
|
||||
jobjectArray NewObjectArray (jsize val0, jclass cl1, jobject obj2)
|
||||
{ return p->NewObjectArray (this, val0, cl1, obj2); }
|
||||
|
||||
jobject GetObjectArrayElement (jobjectArray val0, jsize val1)
|
||||
|
@ -1396,7 +1396,7 @@ _Jv_JNI_GetArrayLength (JNIEnv *, jarray array)
|
||||
return unwrap (array)->length;
|
||||
}
|
||||
|
||||
static jarray JNICALL
|
||||
static jobjectArray JNICALL
|
||||
_Jv_JNI_NewObjectArray (JNIEnv *env, jsize length,
|
||||
jclass elementClass, jobject init)
|
||||
{
|
||||
@ -1407,7 +1407,7 @@ _Jv_JNI_NewObjectArray (JNIEnv *env, jsize length,
|
||||
|
||||
_Jv_CheckCast (elementClass, init);
|
||||
jarray result = JvNewObjectArray (length, elementClass, init);
|
||||
return (jarray) wrap_value (env, result);
|
||||
return (jobjectArray) wrap_value (env, result);
|
||||
}
|
||||
catch (jthrowable t)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user