Skip to content

JNI issue in LzoDecompressor_decompressBytesDirect #134

Description

@luchsh

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions