aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/eclipse/agent
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-03-12 00:25:50 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-03-12 00:25:50 +0100
commit9400f39d12813740634bba233aacc6edcf62c584 (patch)
tree2f1be76ed583de9fd888dfa2a85720e60e8dbf4b /src/eclipseAgent/lombok/eclipse/agent
parentc0daffdb438e1ded5f96d3425b23067c66042a1c (diff)
downloadlombok-9400f39d12813740634bba233aacc6edcf62c584.tar.gz
lombok-9400f39d12813740634bba233aacc6edcf62c584.tar.bz2
lombok-9400f39d12813740634bba233aacc6edcf62c584.zip
Fix for issue #436: In eclipse, calling i.e. `list.get(i).extensionMethod()` would fail with VerifyError when that code is executed in eclipse.
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent')
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java b/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java
index 008e722a..a3d77055 100644
--- a/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java
+++ b/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java
@@ -236,10 +236,8 @@ public class PatchExtensionMethod {
for (int i = 0, iend = arguments.size(); i < iend; i++) {
Expression arg = arguments.get(i);
if (fixedBinding.parameters[i].isArrayType() != arg.resolvedType.isArrayType()) break;
- if (arg.resolvedType.isArrayType()) {
- if (arg instanceof MessageSend) {
- ((MessageSend) arg).valueCast = arg.resolvedType;
- }
+ if (arg instanceof MessageSend) {
+ ((MessageSend) arg).valueCast = arg.resolvedType;
}
if (!fixedBinding.parameters[i].isBaseType() && arg.resolvedType.isBaseType()) {
int id = arg.resolvedType.id;