Back out bug 718760, bug 725052, bug 732069 because of broken Android build
This commit is contained in:
@@ -101,6 +101,21 @@ static jmethodID jByteBufferAllocateDirect;
|
||||
static jmethodID jCursorConstructor;
|
||||
static jmethodID jCursorAddRow;
|
||||
|
||||
static void
|
||||
JNI_Throw(JNIEnv* jenv, const char* name, const char* msg)
|
||||
{
|
||||
jclass cls = jenv->FindClass(name);
|
||||
if (cls == NULL) {
|
||||
LOG("Couldn't find exception class (or exception pending)\n");
|
||||
return;
|
||||
}
|
||||
int rc = jenv->ThrowNew(cls, msg);
|
||||
if (rc < 0) {
|
||||
LOG("Error throwing exception\n");
|
||||
}
|
||||
jenv->DeleteLocalRef(cls);
|
||||
}
|
||||
|
||||
static void
|
||||
JNI_Setup(JNIEnv* jenv)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user