diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-12-04 02:54:22 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-12-04 02:54:22 +0100 |
commit | 2e78a2e03f8fdba4d3d468b2900d30f7e7317641 (patch) | |
tree | 617a4f36b044fa7b1f87cd2e525bd7308b6f0163 /src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java | |
parent | 815f7d0fe82df761c038907043abd1a33d491f5d (diff) | |
parent | 9e7c75a0fef387c173af289626aa04d5c2942710 (diff) | |
download | lombok-2e78a2e03f8fdba4d3d468b2900d30f7e7317641.tar.gz lombok-2e78a2e03f8fdba4d3d468b2900d30f7e7317641.tar.bz2 lombok-2e78a2e03f8fdba4d3d468b2900d30f7e7317641.zip |
Merge branch 'shadowLauncher'
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java')
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java b/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java index 8eec27fb..44adb333 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java @@ -224,7 +224,8 @@ public class PatchExtensionMethod { if (methodCall.arguments != null) arguments.addAll(Arrays.asList(methodCall.arguments)); List<TypeBinding> argumentTypes = new ArrayList<TypeBinding>(); for (Expression argument : arguments) { - argumentTypes.add(argument.resolvedType); + if (argument.resolvedType != null) argumentTypes.add(argument.resolvedType); + // TODO: Instead of just skipping nulls entirely, there is probably a 'unresolved type' placeholder. THAT is what we ought to be adding here! } MethodBinding fixedBinding = scope.getMethod(extensionMethod.declaringClass, methodCall.selector, argumentTypes.toArray(new TypeBinding[0]), methodCall); if (fixedBinding instanceof ProblemMethodBinding) { |