fix(java_indexer): handle ERROR types to avoid crashes
@@ -1553,8 +1553,12 @@ public class KytheTreeScanner extends JCTreeScanner<JavaNode, TreeContext> {
case SHORT:
return JvmGraph.Type.shortType();
+ case ERROR:
+ // Assume reference type; avoid crashing
+ return referenceType(type);
+
default:
- throw new IllegalStateException("unhandled Java Type: " + type.getTag());
+ throw new IllegalStateException("unhandled Java Type: " + type.getTag() + " -- " + type);
}
}
