How To Know The Jclass To Which A Jobject Belongs (jni) August 17, 2023 Post a Comment I need to call the same native C method from my JNI code. This method receives a generic jobject object, but its behavior is different depending on the type of the object itself. ISolution 1: How about using IsInstanceOf?IsInstanceOfjboolean IsInstanceOf(JNIEnv *env, jobject obj, jclass clazz);Tests whether an object is an instance of a class.JNI documentation Share Post a Comment for "How To Know The Jclass To Which A Jobject Belongs (jni)"
Post a Comment for "How To Know The Jclass To Which A Jobject Belongs (jni)"