diff --git a/src/controller/java/CHIPDeviceController-JNI.cpp b/src/controller/java/CHIPDeviceController-JNI.cpp index 5499fee6909a75..9b39ed0748c8e5 100644 --- a/src/controller/java/CHIPDeviceController-JNI.cpp +++ b/src/controller/java/CHIPDeviceController-JNI.cpp @@ -1224,7 +1224,7 @@ CHIP_ERROR N2J_PaseVerifierParams(JNIEnv * env, jlong setupPincode, jbyteArray p SuccessOrExit(err); env->ExceptionClear(); - constructor = env->GetMethodID(paramsClass, "", "(JI[B)V"); + constructor = env->GetMethodID(paramsClass, "", "(J[B)V"); VerifyOrExit(constructor != nullptr, err = CHIP_JNI_ERROR_METHOD_NOT_FOUND); outParams = (jobject) env->NewObject(paramsClass, constructor, setupPincode, paseVerifier);