JNI-146 Reference AbstracEngine instead of Engine

To call java private methods from C/JNI side on an Android 7 device
seem to require to use the MethodId of the real class not from its
decendants
JNI-146
Hussein Kasem 2 years ago committed by heck
parent 7f324d0a67
commit ba4c0456f7
  1. 2
      src/cxx/foundation_pEp_jniadapter_AbstractEngine.cc

@ -71,7 +71,7 @@ void jni_init() {
identityClass = static_cast<jclass>(_env->NewGlobalRef(findClass(_env, "foundation/pEp/jniadapter/_Identity")));
signalClass = static_cast<jclass>(_env->NewGlobalRef(findClass(_env, "foundation/pEp/jniadapter/SyncHandshakeSignal")));
passphraseTypeClass = static_cast<jclass>(_env->NewGlobalRef(findClass(_env, "foundation/pEp/jniadapter/PassphraseType")));
engineClass = static_cast<jclass>(_env->NewGlobalRef(findClass(_env, "foundation/pEp/jniadapter/Engine")));
engineClass = static_cast<jclass>(_env->NewGlobalRef(findClass(_env, "foundation/pEp/jniadapter/AbstractEngine")));
messageConstructorMethodID = _env->GetMethodID(
messageClass,

Loading…
Cancel
Save