From b2e10654525014ce3fb75224543f9a429ba23194 Mon Sep 17 00:00:00 2001 From: Nullptr <52071314+Dr-TSNG@users.noreply.github.com> Date: Fri, 18 Feb 2022 08:24:47 +0800 Subject: [PATCH] Fix another bug --- library/jni/art/runtime/art_method.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/jni/art/runtime/art_method.hpp b/library/jni/art/runtime/art_method.hpp index b390ba2..8ac8998 100644 --- a/library/jni/art/runtime/art_method.hpp +++ b/library/jni/art/runtime/art_method.hpp @@ -120,7 +120,7 @@ public: auto *first = FromReflectedMethod(env, JNI_GetObjectArrayElement(env, constructors, 0).get()); auto *second = FromReflectedMethod(env, - JNI_GetObjectArrayElement(env, constructors, 0).get()); + JNI_GetObjectArrayElement(env, constructors, 1).get()); art_method_size = reinterpret_cast(second) - reinterpret_cast(first); LOGD("ArtMethod size: %zu", art_method_size);