diff options
Diffstat (limited to 'runtime/reflection.cc')
| -rw-r--r-- | runtime/reflection.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/runtime/reflection.cc b/runtime/reflection.cc index de003e525b..098eb0377a 100644 --- a/runtime/reflection.cc +++ b/runtime/reflection.cc @@ -676,8 +676,7 @@ jobject InvokeMethod(const ScopedObjectAccessAlreadyRunnable& soa, jobject javaM } // Box if necessary and return. - return soa.AddLocalReference<jobject>( - BoxPrimitive(Primitive::GetType(shorty[0]), result).Ptr()); + return soa.AddLocalReference<jobject>(BoxPrimitive(Primitive::GetType(shorty[0]), result)); } ObjPtr<mirror::Object> BoxPrimitive(Primitive::Type src_class, const JValue& value) { @@ -911,14 +910,14 @@ void UpdateReference(Thread* self, jobject obj, ObjPtr<mirror::Object> result) { IndirectRef ref = reinterpret_cast<IndirectRef>(obj); IndirectRefKind kind = GetIndirectRefKind(ref); if (kind == kLocal) { - self->GetJniEnv()->locals.Update(obj, result.Ptr()); + self->GetJniEnv()->locals.Update(obj, result); } else if (kind == kHandleScopeOrInvalid) { LOG(FATAL) << "Unsupported UpdateReference for kind kHandleScopeOrInvalid"; } else if (kind == kGlobal) { - self->GetJniEnv()->vm->UpdateGlobal(self, ref, result.Ptr()); + self->GetJniEnv()->vm->UpdateGlobal(self, ref, result); } else { DCHECK_EQ(kind, kWeakGlobal); - self->GetJniEnv()->vm->UpdateWeakGlobal(self, ref, result.Ptr()); + self->GetJniEnv()->vm->UpdateWeakGlobal(self, ref, result); } } |