]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
jni.cc (_Jv_JNI_NewObjectArray): Fixed return type.
authorTom Tromey <tromey@redhat.com>
Wed, 3 Nov 2004 22:53:20 +0000 (22:53 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 3 Nov 2004 22:53:20 +0000 (22:53 +0000)
* jni.cc (_Jv_JNI_NewObjectArray): Fixed return type.
* include/jni.h (struct JNINativeInterface) <NewObjectArray>: Now
returns jobjectArray.
(_Jv_JNIEnv::NewObjectArray): Likewise.

From-SVN: r90041

libjava/ChangeLog
libjava/include/jni.h
libjava/jni.cc

index 3f8e756314a4f3edf2801faf0e12b46acf28b3bd..631679dea68f128ef4bde9c36c86b1ad77ef69df 100644 (file)
@@ -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.
index 51fa7cbe1f6597c595a71c6f6074db85dc805f9e..7765d3d66de75c4a57e5108ed2ee04c622b670c3 100644 (file)
@@ -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)
index 53491cb606d5ba91e39fb8373492d8710253c0fa..6d8fd9db3219493165348b2b2b026b4421e14f8b 100644 (file)
@@ -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)
     {