This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: FYI: jni.h fixlet


I'm checking this in.  This fixes a jni.h bug pointed out by Brian Jones.

Tom

2001-10-27  Tom Tromey  <tromey@redhat.com>

	* include/jni.h (struct JNINativeInterface) [GetStringLength]:
	Returns jsize, not jint.

Index: include/jni.h
===================================================================
RCS file: /cvs/gcc/gcc/libjava/include/jni.h,v
retrieving revision 1.14
diff -u -r1.14 jni.h
--- include/jni.h 2001/04/27 16:09:10 1.14
+++ include/jni.h 2001/10/27 18:22:47
@@ -436,7 +436,7 @@
 					    jfieldID, jdouble);
 
   jstring  (*NewString)                    (JNIEnv *, const jchar *, jsize);
-  jint     (*GetStringLength)              (JNIEnv *, jstring);
+  jsize    (*GetStringLength)              (JNIEnv *, jstring);
   const jchar * (*GetStringChars)          (JNIEnv *, jstring, jboolean *);
   void     (*ReleaseStringChars)           (JNIEnv *, jstring, const jchar *);
   jstring  (*NewStringUTF)                 (JNIEnv *, const char *);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]