| 116 | |
| 117 | template<typename ... Args> |
| 118 | void callVoidMethod(JNIEnv* env, jobject obj, const std::string &methodName, const std::string &type, Args ... args) { |
| 119 | jmethodID method = getClassMethod(env, methodName, type); |
| 120 | ThrowIf(env); |
| 121 | env->CallVoidMethod(obj, method, std::forward<Args>(args)...); |
| 122 | ThrowIf(env); |
| 123 | } |
| 124 | |
| 125 | private: |
| 126 | jmethodID cnstrctr; |
no test coverage detected