Commit ce3b03c9 authored by Dmitry Batkovich's avatar Dmitry Batkovich
Browse files

javac ast indices: fix diagnostic for un-indexed classes

parent 4f0a5096
Showing with 2 additions and 2 deletions
+2 -2
......@@ -263,8 +263,8 @@ class CompilerReferenceReader {
});
if (result[0] == DefCount.NONE) {
//diagnostic
String baseHierarchyElement = getNameEnumerator().getName(def.getName());
LOG.error("Can't get definition files for: " + baseHierarchyElement + ", class: " + def.getClass());
String name = def instanceof LightRef.LightAnonymousClassDef ? String.valueOf(def.getName()) : getNameEnumerator().getName(def.getName());
LOG.error("Can't get definition files for: " + name + ", class: " + def.getClass());
}
return result[0] == DefCount.MANY;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment