Checking if a Java object is of an array type in JNI

Posted by Dan Berindei on Stack Overflow See other posts from Stack Overflow or by Dan Berindei
Published on 2010-03-29T15:28:03Z Indexed on 2010/03/29 15:33 UTC
Read the original article Hit count: 324

Filed under:
|

Say I have a MyClass class in Java, is there a way to check in JNI that a jobject is a MyClass[][]?

My initial idea was to use env->IsInstanceOf(myobj, myArrayClass), but calling env->FindClass("[MyClass") throws a NoClassDefFoundError.

© Stack Overflow or respective owner

Related posts about java

Related posts about jni