diff options
Diffstat (limited to 'src/java_lang_Class.cc')
-rw-r--r-- | src/java_lang_Class.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java_lang_Class.cc b/src/java_lang_Class.cc index 20af47a..fcd1689 100644 --- a/src/java_lang_Class.cc +++ b/src/java_lang_Class.cc @@ -68,7 +68,7 @@ static jclass Class_classForName(JNIEnv* env, jclass, jstring javaName, jboolean return NULL; } if (initialize) { - class_linker->EnsureInitialized(c, true); + class_linker->EnsureInitialized(c, true, true); } return AddLocalReference<jclass>(env, c); } @@ -403,7 +403,7 @@ static jobject Class_newInstanceImpl(JNIEnv* env, jobject javaThis) { return NULL; } - if (!Runtime::Current()->GetClassLinker()->EnsureInitialized(c, true)) { + if (!Runtime::Current()->GetClassLinker()->EnsureInitialized(c, true, true)) { return NULL; } |