[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Patch: jni.h
From: |
David Holmes |
Subject: |
RE: Patch: jni.h |
Date: |
Wed, 28 Apr 2004 22:02:30 +1000 |
> GetStringUTFChars returns "const char *" which is much
> more logical and seems to be the right thing. JNI 1.1 spec says it
> should return "const jbyte *". I search a little bit with google and
> jni.h in other open source projects use "const char *" too. Now I
> really wonder what we should do ? Should we leave it like it is and
> cast to "const char *" in all instances we use GetStringUTFChars in out
> own code or should we just apply the attached patch to change our
> jni.h.
Sun's own jni.h uses "const char*"
This may be a typo in the JNI 1.1 spec as the corresponding
ReleaseStringUTFChars takes a "const char*" too.
David Holmes
- Patch: jni.h, Michael Koch, 2004/04/28
- RE: Patch: jni.h,
David Holmes <=
Re: Patch: jni.h, Tom Tromey, 2004/04/28