This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [cp-patches] Re: Patch: FYI: jni.h fixlet
- From: Archie Cobbs <archie at dellroad dot org>
- To: tromey at redhat dot com
- Cc: Mark Wielaard <mark at klomp dot org>, classpath-patches at gnu dot org, Java Patch List <java-patches at gcc dot gnu dot org>
- Date: Wed, 3 Nov 2004 18:57:55 -0600 (CST)
- Subject: Re: [cp-patches] Re: Patch: FYI: jni.h fixlet
Tom Tromey wrote:
> Mark> Just for the record this comes from the JNI book specification.
> Mark> The online version also listed this as returning jarray:
> Mark> http://java.sun.com/docs/books/jni/html/functions.html#65786
> Mark> But I agree that the spec is probably wrong.
>
> Actually you can see it here:
>
> http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/functions.html#wp21619
>
> These things seem to change; I'm pretty sure this code was correct
> when it was written.
Yep, I can verify it used to be jarray and they changed it.
For Sun at least, the change is backward compatible because their jni.h
just has "typedef jarray jobjectArray". Not so for some other VMs.
-Archie
__________________________________________________________________________
Archie Cobbs * CTO, Awarix * http://www.awarix.com