aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-09-10 23:00:14 +0200
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-09-10 23:00:14 +0200
commit877a169727a4c8078c43a4465929247c3390c897 (patch)
treed98d32eb3db1c829f7d3b4193b910956b309c4df /src/eclipseAgent/lombok
parent67fccba8efbb68d8a7d3c5804b87a29abb622eaf (diff)
downloadlombok-877a169727a4c8078c43a4465929247c3390c897.tar.gz
lombok-877a169727a4c8078c43a4465929247c3390c897.tar.bz2
lombok-877a169727a4c8078c43a4465929247c3390c897.zip
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
Diffstat (limited to 'src/eclipseAgent/lombok')
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/PatchVal.java6
1 files changed, 0 insertions, 6 deletions
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;
}
}