mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 08:15:48 +00:00
bugfix for delomboking source that does not compile; it should just emit compiler errors, not stack traces.
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user