Doing FindClass() for an Inner Class?
1 posts in topic
Flat View  Flat View

Posted By:   Andrew_Biggs
Posted On:   Thursday, February 26, 2004 02:07 PM

Any ideas on how to construct the name for an inner class when using the JNI invokation interface's FindClass method?

For instance, say I want to get a jclass for the JavaMail javax.mail.Flags.Flag class (inner class of Flags class). I have tried the following:

jclass ffc = env->FindClass("javax/mail/Flags/Flag");

...but it doesn't find the class. I know my classpath is fine, because I can get a reference to the Flags class just fine with:

jclass ffc = env->FindClass("javax/mail/Flags");


Re: Doing FindClass() for an Inner Class?

Posted By:   R_H  
Posted On:   Tuesday, March 23, 2004 02:32 PM

jclass ffc = env->FindClass("javax/mail/Flags$Flag");
About | Sitemap | Contact