fixed JNI API