mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 08:18:29 +00:00
Stop trying to resolve methods with broken arguments
This commit is contained in:
1 parent
7242b70270
commit
39b733ab80
1 file changed
+2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user