bugfix for delomboking source that does not compile; it should just emit compiler errors, not stack traces.

This commit is contained in:
Reinier Zwitserloot committed 2017-11-29 04:06:23 +01:00
1 parent 2d5ae0d920
commit 9be8cd4afd
2 files changed
+2

No files matched your search

@@ -261,6 +261,7 @@ public class JavacResolution {
}
public static Type ifTypeIsIterableToComponent(Type type, JavacAST ast) {
if (type == null) return null;
Types types = Types.instance(ast.getContext());
Symtab syms = Symtab.instance(ast.getContext());
Type boundType = ReflectiveAccess.Types_upperBound(types, type);
@@ -226,6 +226,7 @@ public class JavacTreeMaker {
}
public static TypeTag typeTag(Type t) {
if (t == null) return Javac.CTC_VOID;
try {
return new TypeTag(getFieldCached(FIELD_CACHE, t, "tag"));
} catch (NoSuchFieldException e) {