Fixed YCM in JNI code