diff options
author | Andrey Loskutov | 2020-03-26 19:38:32 +0000 |
---|---|---|
committer | Stephan Herrmann | 2020-03-26 21:34:26 +0000 |
commit | 649f56eb1d0af8d8c57e5b7f2f6e533d2978ab71 (patch) | |
tree | 655e5a7c685def47d91542f8a1e088f07b9164c5 | |
parent | 93f1e3dfaae626044d5cf2c9504cc6361ce28828 (diff) | |
download | eclipse.jdt.core-649f56eb1d0af8d8c57e5b7f2f6e533d2978ab71.tar.gz eclipse.jdt.core-649f56eb1d0af8d8c57e5b7f2f6e533d2978ab71.tar.xz eclipse.jdt.core-649f56eb1d0af8d8c57e5b7f2f6e533d2978ab71.zip |
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.java | 4 |
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); |