JNIEnv->FindClass(JNIEnv *env, const char *name), initialize class?
Tom Tromey
tromey@redhat.com
Tue Dec 12 18:39:00 GMT 2006
>>>>> "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
More information about the Java
mailing list