This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: jni.h fixlet
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Subject: Patch: FYI: jni.h fixlet
- From: Tom Tromey <tromey at redhat dot com>
- Date: 27 Oct 2001 12:43:30 -0600
- Reply-To: tromey at redhat dot com
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 *);