This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: JNIEnv->FindClass(JNIEnv *env, const char *name), initialize class?
- From: Tom Tromey <tromey at redhat dot com>
- To: David Daney <ddaney at avtrex dot com>
- Cc: Marco Trudel <mtrudel at gmx dot ch>, GCJ <java at gcc dot gnu dot org>
- Date: 12 Dec 2006 10:44:31 -0700
- Subject: Re: JNIEnv->FindClass(JNIEnv *env, const char *name), initialize class?
- References: <457EF511.10008@gmx.ch> <457EF5E7.4070706@avtrex.com>
- Reply-to: tromey at redhat dot com
>>>>> "David" == David Daney <ddaney@avtrex.com> writes:
>> static { } blocks won't be called when a class is loaded in a JNI
>> function via JNIEnv->FindClass(...). But they will be executed on a
>> Sun JVM.
>> Is an example needed? Is this a GCJ issue? Ideas?
David> A small test case would be useful.
Yeah, please write it in a form where we can drop it into the
libjava.jni test suite.
If this is a bug it looks like the fix will be a one line change in
jni.cc:_Jv_JNI_FindClass.
Tom