Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2019-11-14 18:15:29 +0000
committerStephan Herrmann2019-11-14 18:15:29 +0000
commit62050b74fac53d50e60a594ecb3a5be6d7ba9a70 (patch)
tree451fe0ec254201999337aa443b6ebdfcc8a2d56c
parenta33aa29393230e8178f4d055c2d4705783641e02 (diff)
downloadeclipse.jdt.core-I20191114-1800.tar.gz
eclipse.jdt.core-I20191114-1800.tar.xz
eclipse.jdt.core-I20191114-1800.zip
Bug 550554 - Incremental builder stops showing squigglesI20191114-1800
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/IncrementalImageBuilder.java9
1 files changed, 9 insertions, 0 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 7844e0a50f..f4b786b704 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
@@ -956,6 +956,15 @@ protected boolean writeClassFileCheck(IFile file, String fileName, byte[] newByt
addDependentsOf(new Path(fileName), true);
this.newState.wasStructurallyChanged(fileName);
}
+ } catch (JavaModelException jme) {
+ Throwable e = jme.getCause();
+ if (e instanceof CoreException) {
+ // assuming a ResourceException during IFile.getContents(), treat it like a corrupt file
+ addDependentsOf(new Path(fileName), true);
+ this.newState.wasStructurallyChanged(fileName);
+ } else {
+ throw jme;
+ }
} catch (ClassFormatException e) {
addDependentsOf(new Path(fileName), true);
this.newState.wasStructurallyChanged(fileName);

Back to the top