This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: JNI field validation?
- To: mgd at swarm dot org (Marcus G. Daniels)
- Subject: Re: JNI field validation?
- From: Tom Tromey <tromey at redhat dot com>
- Date: 22 Mar 2001 11:51:45 -0700
- Cc: java at gcc dot gnu dot org
- References: <rfin1ae8k6x.fsf@cathcart.sysc.pdx.edu>
- Reply-To: tromey at redhat dot com
>>>>> "Marcus" == Marcus G Daniels <mgd@swarm.org> writes:
Marcus> In jni.cc, in the function _Jv_JNI_GetAnyFieldID, there's a
Marcus> check to see if the field type requested matches the one found
Marcus> while iterating through the fields. To do this it calls
Marcus> _Jv_FindClassFromSignature, but that doesn't handle array
Marcus> signatures like "[java/lang/Class;".
I wrote a short test for this and it works when I interpret the class
but not when the class is compiled. That might mean there is a bug in
the stub. I'll check the test in sometime soon.
Tom