mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 08:18:29 +00:00
[java8] don't crash on intersection types
This commit is contained in:
1 parent
844995fc60
commit
8bfed5d51c
1 file changed
+5
-1
@@ -166,7 +166,11 @@ public class PatchVal {
|
||||
resolved = null;
|
||||
}
|
||||
if (resolved != null) {
|
||||
replacement = makeType(resolved, local.type, false);
|
||||
try {
|
||||
replacement = makeType(resolved, local.type, false);
|
||||
} catch (Exception e) {
|
||||
// Some type thing failed. It might be an IntersectionType
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user