hadoop-lzo
hadoop-lzo copied to clipboard
JNI issue in LzoDecompressor_decompressBytesDirect
The type of the second parameter of GetStaticObjectField should be 'jclass' instead of 'jobject', this can be found by specifying jvm option "-Xcheck:jni".
JNIEXPORT jint JNICALL
Java_com_hadoop_compression_lzo_LzoDecompressor_decompressBytesDirect(
JNIEnv *env, jobject this, jint decompressor
) {
.....
// Get members of LzoDecompressor
clazz = (*env)->GetStaticObjectField(env, this,
LzoDecompressor_clazz);