Skip to content

Commit

Permalink
Merge pull request ibmruntimes#728 from jasonkatonica/katonica/issue1…
Browse files Browse the repository at this point in the history
…7795/typeincorrect

Use correct JNI function to call ArrayList.add()
  • Loading branch information
keithc-ca committed Jan 9, 2024
2 parents b058bf9 + e85cf1a commit 3cbb45e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jdk/src/share/native/sun/security/pkcs11/j2secmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
* questions.
*/

/*
* ===========================================================================
* (c) Copyright IBM Corp. 2024, 2024 All Rights Reserved
* ===========================================================================
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down Expand Up @@ -241,7 +247,7 @@ JNIEXPORT jobject JNICALL Java_sun_security_pkcs11_Secmod_nssGetModuleList
if (jModule == NULL) {
return NULL;
}
(*env)->CallVoidMethod(env, jList, jAdd, jModule);
(*env)->CallBooleanMethod(env, jList, jAdd, jModule);
if ((*env)->ExceptionCheck(env)) {
return NULL;
}
Expand Down

0 comments on commit 3cbb45e

Please sign in to comment.