Use regular JNI for initializing the boxing types.
Change-Id: I2ae94b7a9cbd2831fb73e58aa9f71e50edb78f87
diff --git a/src/runtime.cc b/src/runtime.cc
index e6bd6e2..790a700 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -442,13 +442,14 @@
// Must be in the kNative state for JNI-based method registration.
ScopedThreadStateChange tsc(self, Thread::kNative);
+ JniConstants::init(env);
+
// First set up the native methods provided by the runtime itself.
RegisterRuntimeNativeMethods(env);
// Now set up libcore, which is just a JNI library with a JNI_OnLoad.
// Most JNI libraries can just use System.loadLibrary, but you can't
// if you're the library that implements System.loadLibrary!
- JniConstants::init(env);
LoadJniLibrary(instance_->GetJavaVM(), "javacore");
}