Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjay2018-12-04 13:55:11 -0500
committerjay2018-12-05 04:00:37 -0500
commit656a7f631fb76e187296f81dcd900dfff9ff6a65 (patch)
treefe99f1dd4ca496289e39839388017d185b7d8b3e /org.eclipse.jdt.compiler.apt
parentbff823d336ce03dac0d247c2ec5ced05ed4343ba (diff)
downloadeclipse.jdt.core-656a7f631fb76e187296f81dcd900dfff9ff6a65.tar.gz
eclipse.jdt.core-656a7f631fb76e187296f81dcd900dfff9ff6a65.tar.xz
eclipse.jdt.core-656a7f631fb76e187296f81dcd900dfff9ff6a65.zip
Bug 542090 - FilerException: Source file already createdI20181206-0320I20181206-0225I20181206-0030I20181205-1800
Change-Id: I18e92e5ad1eaafae9230b2718ac872e5cf5f1891 Signed-off-by: jay <jarthana@in.ibm.com>
Diffstat (limited to 'org.eclipse.jdt.compiler.apt')
-rw-r--r--org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/dispatch/BaseAnnotationProcessorManager.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/dispatch/BaseAnnotationProcessorManager.java b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/dispatch/BaseAnnotationProcessorManager.java
index 67fc9a8726..0b4b87cb3c 100644
--- a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/dispatch/BaseAnnotationProcessorManager.java
+++ b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/dispatch/BaseAnnotationProcessorManager.java
@@ -47,7 +47,7 @@ public abstract class BaseAnnotationProcessorManager extends AbstractAnnotationP
protected PrintWriter _out;
protected PrintWriter _err;
protected BaseProcessingEnvImpl _processingEnv;
- protected boolean _isFirstRound = true;
+ public boolean _isFirstRound = true;
/**
* The list of processors that have been loaded so far. A processor on this
@@ -161,9 +161,6 @@ public abstract class BaseAnnotationProcessorManager extends AbstractAnnotationP
}
}
RoundEnvImpl roundEnv = new RoundEnvImpl(units, referenceBindings, isLastRound, _processingEnv);
- if (_isFirstRound) {
- _isFirstRound = false;
- }
PrintWriter traceProcessorInfo = _printProcessorInfo ? _out : null;
PrintWriter traceRounds = _printRounds ? _out : null;
if (traceRounds != null) {
@@ -172,5 +169,8 @@ public abstract class BaseAnnotationProcessorManager extends AbstractAnnotationP
RoundDispatcher dispatcher = new RoundDispatcher(
this, roundEnv, roundEnv.getRootAnnotations(), traceProcessorInfo, traceRounds);
dispatcher.round();
+ if (_isFirstRound) {
+ _isFirstRound = false;
+ }
}
}

Back to the top