From 877a169727a4c8078c43a4465929247c3390c897 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 10 Sep 2019 23:00:14 +0200 Subject: Undoing PR #2114 which tried to fix issue #1976 This PR does fix that, but introduces its own problem. See commit immediately following this one for explanation --- src/eclipseAgent/lombok/eclipse/agent/PatchVal.java | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/eclipseAgent/lombok') diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java b/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java index 0c66bb31..5c31e87a 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java @@ -366,10 +366,6 @@ public class PatchVal { } private static TypeBinding resolveForExpression(Expression collection, BlockScope scope) { - CompilationUnitDeclaration referenceContext = scope.compilationUnitScope().referenceContext; - ProblemReporter oldProblemReporter = referenceContext.problemReporter; - referenceContext.problemReporter = new ProblemReporter(DefaultErrorHandlingPolicies.exitOnFirstError(), - oldProblemReporter.options, oldProblemReporter.problemFactory); try { return collection.resolveType(scope); } catch (ArrayIndexOutOfBoundsException e) { @@ -413,8 +409,6 @@ public class PatchVal { } } throw e; - } finally { - referenceContext.problemReporter = oldProblemReporter; } } -- cgit