Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2019-03-26 17:50:01 -0400
committerJay Arthanareeswaran2019-04-02 02:34:45 -0400
commit6c19f59ccc7eddfcbe29da18a067179f04929983 (patch)
treec1abe9041a823d7439785110a0e93cf766a7041e /org.eclipse.jdt.compiler.apt
parent11c8aa046b654035396fabe27672bbab88bb0fda (diff)
downloadeclipse.jdt.core-6c19f59ccc7eddfcbe29da18a067179f04929983.tar.gz
eclipse.jdt.core-6c19f59ccc7eddfcbe29da18a067179f04929983.tar.xz
eclipse.jdt.core-6c19f59ccc7eddfcbe29da18a067179f04929983.zip
Bug 535819 - possible NPE when using ecj >3.13.0 with annotation
processor - sketch of a fix but without a test Change-Id: I9f83c6134076c81444eda848f2676482b08e8730 Signed-off-by: Stephan Herrmann <stephan.herrmann@berlin.de>
Diffstat (limited to 'org.eclipse.jdt.compiler.apt')
-rw-r--r--org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/dispatch/RoundEnvImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/dispatch/RoundEnvImpl.java b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/dispatch/RoundEnvImpl.java
index d4aca24a4c..3f8515c1d2 100644
--- a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/dispatch/RoundEnvImpl.java
+++ b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/dispatch/RoundEnvImpl.java
@@ -60,9 +60,9 @@ public class RoundEnvImpl implements RoundEnvironment
AnnotationDiscoveryVisitor visitor = new AnnotationDiscoveryVisitor(_processingEnv);
if (_units != null) {
for (CompilationUnitDeclaration unit : _units) {
- unit.scope.suppressImportErrors = true;
+ unit.scope.environment.suppressImportErrors = true;
unit.traverse(visitor, unit.scope);
- unit.scope.suppressImportErrors = false;
+ unit.scope.environment.suppressImportErrors = false;
}
}
_annoToUnit = visitor._annoToElement;

Back to the top