aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/eclipse
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2020-04-04 22:58:52 +0200
committerRawi01 <Rawi01@users.noreply.github.com>2020-04-04 22:58:52 +0200
commit39b733ab805f541a0834fb9cc501dc8b90567aa9 (patch)
treef879902ecdd8ffefe14126fdc79e41315c2171bc /src/eclipseAgent/lombok/eclipse
parent7242b702700d0226b161eee33d4a630ccae7044d (diff)
downloadlombok-39b733ab805f541a0834fb9cc501dc8b90567aa9.tar.gz
lombok-39b733ab805f541a0834fb9cc501dc8b90567aa9.tar.bz2
lombok-39b733ab805f541a0834fb9cc501dc8b90567aa9.zip
Stop trying to resolve methods with broken arguments
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse')
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java b/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java
index 964efada..c4b0153c 100644
--- a/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java
+++ b/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java
@@ -252,6 +252,8 @@ public class PatchExtensionMethod {
Binding binding = ((NameReference)methodCall.receiver).binding;
if (binding instanceof TypeBinding) skip = true;
}
+ // It's impossible to resolve the right method without types
+ if (methodCall.argumentsHaveErrors) skip = true;
if (!skip) for (Extension extension : extensions) {
if (!extension.suppressBaseMethods && !(methodCall.binding instanceof ProblemMethodBinding)) continue;