Start implementing JNI.
This patch replaces our JniEnvironment class with the regular JNIEnv.
This patch also adds support for .jar, .zip, and .apk files in the
boot classpath.
There's also an attempt at implementing JNIEnv::FindClass.
I've also fixed a few scoped_ptr/scoped_array bugs (this kind of thing
being the reason we use UniquePtr in libcore), and removed some
unnecessary .
The 'tools/art' script makes it easier to play with aexec on the command-line.
Change-Id: Ic4f704c12e0071f17e95b6e182fdab9370ead9b0
diff --git a/src/runtime.h b/src/runtime.h
index 1a9661f..f04aefe 100644
--- a/src/runtime.h
+++ b/src/runtime.h
@@ -6,6 +6,7 @@
#include <vector>
#include <utility>
+#include "jni.h"
#include "globals.h"
#include "macros.h"
#include "stringpiece.h"
@@ -15,7 +16,6 @@
class ClassLinker;
class DexFile;
class Heap;
-class JniEnvironment;
class ThreadList;
class Runtime {
@@ -41,8 +41,8 @@
static void Abort(const char* file, int line);
// Attaches the current native thread to the runtime.
- bool AttachCurrentThread(const char* name, JniEnvironment** jni_env);
- bool AttachCurrentThreadAsDaemon(const char* name, JniEnvironment** jni_env);
+ bool AttachCurrentThread(const char* name, JNIEnv** jni_env);
+ bool AttachCurrentThreadAsDaemon(const char* name, JNIEnv** jni_env);
// Detaches the current native thread from the runtime.
bool DetachCurrentThread();