diff options
| -rw-r--r-- | tools/hiddenapi/hiddenapi.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/hiddenapi/hiddenapi.cc b/tools/hiddenapi/hiddenapi.cc index 937abd155e..646e4838b3 100644 --- a/tools/hiddenapi/hiddenapi.cc +++ b/tools/hiddenapi/hiddenapi.cc @@ -526,7 +526,11 @@ class Hierarchy final { } HierarchyClass* superclass = FindClass(dex_klass.GetSuperclassDescriptor()); - CHECK(superclass != nullptr); + CHECK(superclass != nullptr) + << "Superclass " << dex_klass.GetSuperclassDescriptor() + << " of class " << dex_klass.GetDescriptor() << " from dex file \"" + << dex_klass.GetDexFile().GetLocation() << "\" was not found. " + << "Either the superclass is missing or it appears later in the classpath spec."; klass.AddExtends(*superclass); for (const std::string_view& iface_desc : dex_klass.GetInterfaceDescriptors()) { |