summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/mirror/class-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/mirror/class-inl.h b/runtime/mirror/class-inl.h
index 20b5f463f0..3d3c71759b 100644
--- a/runtime/mirror/class-inl.h
+++ b/runtime/mirror/class-inl.h
@@ -1284,7 +1284,7 @@ inline void Class::FixupNativePointers(Class* dest,
}
inline bool Class::CanAccess(ObjPtr<Class> that) {
- return that->IsPublic() || this->IsInSamePackage(that);
+ return this == that || that->IsPublic() || this->IsInSamePackage(that);
}