diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-03 22:53:20 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-03 22:53:20 +0000 |
commit | c9453cf9d4a304956c75405e72fcc9dc253c6a45 (patch) | |
tree | 23cd7c7c62febbe582e9b5f54879836b695fa331 /libjava/jni.cc | |
parent | 5525676133f067f65262799dd1776c5261968552 (diff) | |
download | gcc-c9453cf9d4a304956c75405e72fcc9dc253c6a45.tar.gz |
* jni.cc (_Jv_JNI_NewObjectArray): Fixed return type.
* include/jni.h (struct JNINativeInterface) <NewObjectArray>: Now
returns jobjectArray.
(_Jv_JNIEnv::NewObjectArray): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90041 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r-- | libjava/jni.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc index 53491cb606d..6d8fd9db321 100644 --- a/libjava/jni.cc +++ b/libjava/jni.cc @@ -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) { |