A
Aaron Fude
Hi,
I use something like this to create an instance of "MyClass":
jclass clsMyClass = env->FindClass( "mypackage/MyClass" );
jmethodID midCtor = env->GetMethodID( clsMyClass, "<init>", "()V" );
jobject myInst = env->NewObject( clsMyClass, midCtor );
However, if I try a similar approach for create an instance of
MyClass.Nested where the nested class is static, of course, I get a crash. I
do this:
clsMyClass = env->FindClass( "mypackage/MyClass.Nested" );
Is this the correct syntax?
Is this possible in principle?
Should I post more detail?
Very many thanks in advance!
Aaron Fude
I use something like this to create an instance of "MyClass":
jclass clsMyClass = env->FindClass( "mypackage/MyClass" );
jmethodID midCtor = env->GetMethodID( clsMyClass, "<init>", "()V" );
jobject myInst = env->NewObject( clsMyClass, midCtor );
However, if I try a similar approach for create an instance of
MyClass.Nested where the nested class is static, of course, I get a crash. I
do this:
clsMyClass = env->FindClass( "mypackage/MyClass.Nested" );
Is this the correct syntax?
Is this possible in principle?
Should I post more detail?
Very many thanks in advance!
Aaron Fude