diff options
author | Roel Spilker <r.spilker@gmail.com> | 2019-02-19 01:47:49 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2019-02-19 01:47:49 +0100 |
commit | 8479edb4262a7eb8cb76baba138f0ea5aae841c5 (patch) | |
tree | 06be11d07b5b216f8a5d422b00a4f800391ceeb3 /src/eclipseAgent/lombok/eclipse/agent/PatchVal.java | |
parent | fd9045dac2a3d9b26125b8ccc865b23d8f7cd8d4 (diff) | |
download | lombok-8479edb4262a7eb8cb76baba138f0ea5aae841c5.tar.gz lombok-8479edb4262a7eb8cb76baba138f0ea5aae841c5.tar.bz2 lombok-8479edb4262a7eb8cb76baba138f0ea5aae841c5.zip |
var/val in Eclipse can now handle intersection types, fixes #1986
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent/PatchVal.java')
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/PatchVal.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java b/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java index 8d581819..12f4ad3d 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2018 The Project Lombok Authors. + * Copyright (C) 2010-2019 The Project Lombok Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -265,8 +265,9 @@ public class PatchVal { if (resolved != null) { try { replacement = makeType(resolved, local.type, false); + if (!decomponent) init.resolvedType = replacement.resolveType(scope); } catch (Exception e) { - // Some type thing failed. It might be an IntersectionType + // Some type thing failed. } } } |