Skip to content

Commit b22d681

Browse files
authored
Merge pull request #22061 from tajila/jvmti
(0.53) Fix add module read JNI return type
2 parents 7b11a33 + 87f5907 commit b22d681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/jvmti/jvmtiModules.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ jvmtiAddModuleReads(jvmtiEnv* jvmtiEnv, jobject fromModule, jobject toModule)
398398

399399
vm->addReads = addReads;
400400
}
401-
(*env)->CallObjectMethod(env, fromModule, vm->addReads, toModule, JNI_TRUE);
401+
(*env)->CallVoidMethod(env, fromModule, vm->addReads, toModule, JNI_TRUE);
402402
if ((*env)->ExceptionCheck(env)) {
403403
rc = JVMTI_ERROR_INTERNAL;
404404
}

0 commit comments

Comments
 (0)