Back out bug 718760, bug 725052, bug 732069 because of broken Android build

This commit is contained in:
Matt Brubeck
2012-03-12 10:37:22 -07:00
parent ac9835e7d9
commit 3cb1567169
26 changed files with 204 additions and 1053 deletions

View File

@@ -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)
{