P
Philipp Kraus
Hello,
I use JNI calls for some Java classes. Some Java classes are generic
classes like:
class mytestclass<T> {
public native void mymethod();
}
The stub shows:
JNIEXPORT void JNICALL Java_mytestclass_mymethod(JNIEnv* p_env, jobject
p_object)
How can I get from the jobject which object type is the generic
parameter T? Because I would
like to create different codes if I do something like:
mytestclass<int> x = new mytestclass<int>();
x.mymethod();
mytestclass<String> x = new mytestclass<String>();
x.mymethod();
Thanks
Phil
I use JNI calls for some Java classes. Some Java classes are generic
classes like:
class mytestclass<T> {
public native void mymethod();
}
The stub shows:
JNIEXPORT void JNICALL Java_mytestclass_mymethod(JNIEnv* p_env, jobject
p_object)
How can I get from the jobject which object type is the generic
parameter T? Because I would
like to create different codes if I do something like:
mytestclass<int> x = new mytestclass<int>();
x.mymethod();
mytestclass<String> x = new mytestclass<String>();
x.mymethod();
Thanks
Phil