2 questions:
(1) You say "The type of the first parameter of the lambda must be jni::JNIEnv&. The type of the second parameter must be either jni::jclass*". Yet, in your Calculator example there in only the Env: "jni::jlong Add(jni::JNIEnv&, jni::jlong a, jni::jlong b)". Why?
(2) Why would you require the native class to take these 1 or 2 extra parameters? Isn't the purpose of your lib to present an already-defined class in a form consumable from Java?
2 questions:
(1) You say "The type of the first parameter of the lambda must be jni::JNIEnv&. The type of the second parameter must be either jni::jclass*". Yet, in your Calculator example there in only the Env: "jni::jlong Add(jni::JNIEnv&, jni::jlong a, jni::jlong b)". Why?
(2) Why would you require the native class to take these 1 or 2 extra parameters? Isn't the purpose of your lib to present an already-defined class in a form consumable from Java?