Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2020-03-26 19:38:32 +0000
committerStephan Herrmann2020-03-26 21:34:26 +0000
commit649f56eb1d0af8d8c57e5b7f2f6e533d2978ab71 (patch)
tree655e5a7c685def47d91542f8a1e088f07b9164c5
parent93f1e3dfaae626044d5cf2c9504cc6361ce28828 (diff)
downloadeclipse.jdt.core-649f56eb1d0af8d8c57e5b7f2f6e533d2978ab71.tar.gz
eclipse.jdt.core-649f56eb1d0af8d8c57e5b7f2f6e533d2978ab71.tar.xz
eclipse.jdt.core-649f56eb1d0af8d8c57e5b7f2f6e533d2978ab71.zip
Bug 561287 - temporary flag to check if bug 559965 is relatedI20200327-1800I20200326-1800
Added system flag DISABLE_FIX_FOR_559965 that allows temporarily "undo" the fix for bug 559965. If the flag is set to true, the fix for bug 559965 is disabled. Change-Id: Idb5e515af30dfe857fc450aae4b7839669fbcf77 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/IncrementalImageBuilder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/IncrementalImageBuilder.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/IncrementalImageBuilder.java
index eaaf803585..74d29f8082 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/IncrementalImageBuilder.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/IncrementalImageBuilder.java
@@ -52,6 +52,8 @@ private IncrementalImageBuilder testImageBuilder;
public static int MaxCompileLoop = 5; // perform a full build if it takes more than ? incremental compile loops
+private static final boolean DISABLE_FIX_FOR_559965 = Boolean.getBoolean("DISABLE_FIX_FOR_559965"); //$NON-NLS-1$
+
protected IncrementalImageBuilder(JavaBuilder javaBuilder, State buildState, CompilationGroup compilationGroup) {
super(javaBuilder, true, buildState, compilationGroup);
this.nameEnvironment.isIncrementalBuild = true;
@@ -137,7 +139,7 @@ public boolean build(SimpleLookupTable deltas) {
this.notifier.subTask(Messages.build_analyzingSources);
addAffectedSourceFiles();
- if (this.testImageBuilder != null) {
+ if (this.testImageBuilder != null && !DISABLE_FIX_FOR_559965) {
this.testImageBuilder.addAffectedSourceFiles();
}
this.notifier.updateProgressDelta(0.05f);

Back to the top