This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: JNIEnv->FindClass(JNIEnv *env, const char *name) fix


Hey guys

As discussed here: http://gcc.gnu.org/ml/java/2006-12/msg00136.html, JNIEnv->FindClass should initialize the class. This little fix does that. Thanks for the hint to the source file Tom.

A testcase can be found in the discussion in the link above.

Suggested changelog entry:

2006-12-13 Marco Trudel <mtrudel@gmx.ch>

    * jni.cc (_Jv_JNI_FindClass):
    Initialize the class.


Comments to the patch?



I'm really afraid to ask... Anyhow: Can someone please commit that for me?
Or Andrew, you once told me that the trunk is now open (or something like that). Does it mean that I can commit that myself without login data? Or let's put it that way: I'd like to have an account, so I don't always have to ask/hope someone commits my stuff...



thanks Marco
Index: jni.cc
===================================================================
--- jni.cc	(Revision 119819)
+++ jni.cc	(Arbeitskopie)
@@ -552,6 +552,7 @@
 	}
 
       r = loader->loadClass (n);
+      _Jv_InitClass (r);
     }
   catch (jthrowable t)
     {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]