passing arrays to JNI ok