diff options
author | Roel Spilker <r.spilker@gmail.com> | 2014-05-08 01:08:56 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2014-05-08 01:08:56 +0200 |
commit | 8bfed5d51c274dccab23bda58440d63ba852f219 (patch) | |
tree | 95e61d00dfecc8b0a8ae670d3b4d2bb151f655c8 /src/eclipseAgent/lombok/eclipse | |
parent | 844995fc606085af7c102954ee342edfd8cd623a (diff) | |
download | lombok-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.java | 6 |
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 + } } } |