diff options
Diffstat (limited to 'runtime/native/java_lang_Class.cc')
-rw-r--r-- | runtime/native/java_lang_Class.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/native/java_lang_Class.cc b/runtime/native/java_lang_Class.cc index 2b2fe0c7d9..af9b68f9a7 100644 --- a/runtime/native/java_lang_Class.cc +++ b/runtime/native/java_lang_Class.cc @@ -669,8 +669,7 @@ static jobject Class_newInstance(JNIEnv* env, jobject javaThis) { caller.Assign(GetCallingClass(soa.Self(), 1)); } if (UNLIKELY(caller.Get() != nullptr && !VerifyAccess( - soa.Self(), receiver.Get(), declaring_class, constructor->GetAccessFlags(), - caller.Get()))) { + receiver.Get(), declaring_class, constructor->GetAccessFlags(), caller.Get()))) { soa.Self()->ThrowNewExceptionF( "Ljava/lang/IllegalAccessException;", "%s is not accessible from %s", PrettyMethod(constructor).c_str(), PrettyClass(caller.Get()).c_str()); |