added a JniCache objectet for caching jclass, jmethodID, and jfieldID objects

This commit is contained in:
Grant Limberg 2015-05-02 11:20:21 -07:00
parent 9f2732d661
commit 079d248eab
6 changed files with 331 additions and 3 deletions

View file

@ -1,4 +1,5 @@
#include "ZT1_jniutils.h"
#include "ZT1_jnicache.h"
#include <string>
#include <assert.h>
@ -6,6 +7,8 @@
extern "C" {
#endif
extern JniCache cache;
jobject createResultObject(JNIEnv *env, ZT1_ResultCode code)
{
jclass resultClass = NULL;