I came across the following snippet :
jobjectArray result;
int i;
jclass intArrCls = (*env)->FindClass(env,"[I"); // will return an array class
if(intArrCls == NULL) {
return NULL;
}
result = (*env)->NewObjectArray(env,size,intArrCls,NULL);
In the above snippet what does (*env)->FindClass(env,"[I") return ? what does "[I" denote ? I checked the DOCS but didn’t understand
[Iis the bytecode notation for the typeint[].This is, among other places, documented here:
Class.getName()