From 1923dc9a3d45598f4da499867627ba92cf412675 Mon Sep 17 00:00:00 2001 From: Amon Al-Khatib Date: Mon, 11 Jul 2022 22:35:58 +0000 Subject: [PATCH] Remove Integer from PaseVerifierParams constructor The spec was updated to force PasscodeId to be always zero for v1.0, and this was updated in #15924. This change removes it from the corresponding JNI constructor which was missed in the original fix. --- src/controller/java/CHIPDeviceController-JNI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);