Skip to content

Commit

Permalink
Undoing PR #2114 which tried to fix issue #1976
Browse files Browse the repository at this point in the history
This PR does fix that, but introduces its own problem.
See commit immediately following this one for explanation
  • Loading branch information
rzwitserloot committed Sep 10, 2019
1 parent 67fccba commit 877a169
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/eclipseAgent/lombok/eclipse/agent/PatchVal.java
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,6 @@ private static TypeBinding getForEachComponentType(Expression collection, BlockS
}

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) {
Expand Down Expand Up @@ -413,8 +409,6 @@ private static TypeBinding resolveForExpression(Expression collection, BlockScop
}
}
throw e;
} finally {
referenceContext.problemReporter = oldProblemReporter;
}
}

Expand Down

0 comments on commit 877a169

Please sign in to comment.