This is an automated email from the ASF dual-hosted git repository.
felixybw pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git
The following commit(s) were added to refs/heads/main by this push:
new 37b45e0baf [VL] Reuse getMethodIdOrError to get jmethodID (#10347)
37b45e0baf is described below
commit 37b45e0baf9de45a40efe5bb4f43bb7e8f740979
Author: Jiaan Geng <[email protected]>
AuthorDate: Mon Aug 4 22:56:03 2025 +0800
[VL] Reuse getMethodIdOrError to get jmethodID (#10347)
This PR proposes to reuse getMethodIdOrError to get jmethodID.
---
cpp/velox/jni/VeloxJniWrapper.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpp/velox/jni/VeloxJniWrapper.cc b/cpp/velox/jni/VeloxJniWrapper.cc
index 747a8e76db..624a93f170 100644
--- a/cpp/velox/jni/VeloxJniWrapper.cc
+++ b/cpp/velox/jni/VeloxJniWrapper.cc
@@ -70,11 +70,11 @@ jint JNI_OnLoad(JavaVM* vm, void*) {
initVeloxJniUDF(env);
infoCls = createGlobalClassReferenceOrError(env,
"Lorg/apache/gluten/validate/NativePlanValidationInfo;");
- infoClsInitMethod = env->GetMethodID(infoCls, "<init>",
"(ILjava/lang/String;)V");
+ infoClsInitMethod = getMethodIdOrError(env, infoCls, "<init>",
"(ILjava/lang/String;)V");
blockStripesClass =
createGlobalClassReferenceOrError(env,
"Lorg/apache/spark/sql/execution/datasources/BlockStripes;");
- blockStripesConstructor = env->GetMethodID(blockStripesClass, "<init>",
"(J[J[II[[B)V");
+ blockStripesConstructor = getMethodIdOrError(env, blockStripesClass,
"<init>", "(J[J[II[[B)V");
DLOG(INFO) << "Loaded Velox backend.";
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]