From 95a4a50d31215695e028a21c8bb47f75e6a790bb Mon Sep 17 00:00:00 2001 From: yunhanw Date: Wed, 24 May 2023 13:22:45 -0700 Subject: [PATCH] Add missing L fully-qualified-class for controller exception --- src/controller/java/AndroidControllerExceptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/java/AndroidControllerExceptions.cpp b/src/controller/java/AndroidControllerExceptions.cpp index 0419ad2a9bf0ee..e426759eade2e5 100644 --- a/src/controller/java/AndroidControllerExceptions.cpp +++ b/src/controller/java/AndroidControllerExceptions.cpp @@ -33,7 +33,7 @@ CHIP_ERROR AndroidControllerExceptions::CreateAndroidControllerException(JNIEnv VerifyOrReturnError(err == CHIP_NO_ERROR, CHIP_JNI_ERROR_TYPE_NOT_FOUND); JniClass controllerExceptionJniCls(controllerExceptionCls); - jmethodID exceptionConstructor = env->GetMethodID(controllerExceptionCls, "", "(Jjava/lang/String;)V"); + jmethodID exceptionConstructor = env->GetMethodID(controllerExceptionCls, "", "(JLjava/lang/String;)V"); outEx = (jthrowable) env->NewObject(controllerExceptionCls, exceptionConstructor, static_cast(errorCode), env->NewStringUTF(message)); VerifyOrReturnError(outEx != nullptr, CHIP_JNI_ERROR_TYPE_NOT_FOUND);