From 9400f39d12813740634bba233aacc6edcf62c584 Mon Sep 17 00:00:00 2001
From: Reinier Zwitserloot <reinier@zwitserloot.com>
Date: Tue, 12 Mar 2013 00:25:50 +0100
Subject: Fix for issue #436: In eclipse, calling i.e.
 `list.get(i).extensionMethod()` would fail with VerifyError when that code is
 executed in eclipse.

---
 src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'src')

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;
-- 
cgit