aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/eclipse
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2014-05-08 01:08:56 +0200
committerRoel Spilker <r.spilker@gmail.com>2014-05-08 01:08:56 +0200
commit8bfed5d51c274dccab23bda58440d63ba852f219 (patch)
tree95e61d00dfecc8b0a8ae670d3b4d2bb151f655c8 /src/eclipseAgent/lombok/eclipse
parent844995fc606085af7c102954ee342edfd8cd623a (diff)
downloadlombok-8bfed5d51c274dccab23bda58440d63ba852f219.tar.gz
lombok-8bfed5d51c274dccab23bda58440d63ba852f219.tar.bz2
lombok-8bfed5d51c274dccab23bda58440d63ba852f219.zip
[java8] don't crash on intersection types
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse')
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/PatchVal.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java b/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java
index 59fbe9d0..e734dceb 100644
--- a/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java
+++ b/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java
@@ -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
+ }
}
}