diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-12-04 02:10:35 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-12-04 02:10:35 +0100 |
commit | 932dc55b1ab88f66c64bba62d4181ee6e044490f (patch) | |
tree | 1c0f40de12881bec6d9f1b15b6cff229554dfc99 /src/eclipseAgent | |
parent | f5819f11f4f924adaf012ac927c798191e112848 (diff) | |
download | lombok-932dc55b1ab88f66c64bba62d4181ee6e044490f.tar.gz lombok-932dc55b1ab88f66c64bba62d4181ee6e044490f.tar.bz2 lombok-932dc55b1ab88f66c64bba62d4181ee6e044490f.zip |
fix for lombok not compiling if JDK8’s javac is used as default compiler.
Diffstat (limited to 'src/eclipseAgent')
-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) { |