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);