Expand error message in ResolvedMethodAccessTest am: 1126d74e2a
Original change: https://android-review.googlesource.com/c/platform/art/+/1823212
Change-Id: If813f5472b117a5c4787a5850c18b7805cbac0e6
diff --git a/runtime/mirror/class-inl.h b/runtime/mirror/class-inl.h
index d7dfe0d..7a56d13 100644
--- a/runtime/mirror/class-inl.h
+++ b/runtime/mirror/class-inl.h
@@ -505,7 +505,9 @@
class_idx,
dex_cache,
access_to->GetClassLoader());
- DCHECK(dex_access_to != nullptr);
+ DCHECK(dex_access_to != nullptr)
+ << " Could not resolve " << dex_cache->GetDexFile()->StringByTypeIdx(class_idx)
+ << " when checking access to " << method->PrettyMethod() << " from " << PrettyDescriptor();
if (UNLIKELY(!this->CanAccess(dex_access_to))) {
if (throw_on_failure) {
ThrowIllegalAccessErrorClassForMethodDispatch(this,