Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Brychcy2018-11-01 08:39:42 +0000
committerTill Brychcy2018-11-01 08:39:42 +0000
commitc733643b2d071fdcbe0ba8093a962fa3f0a0cde5 (patch)
treebb370390f9060089d621acdfdf88a61cab707d3b
parent1d1468f56bf9e54149c9b9759e0d4e70fd0d999b (diff)
downloadeclipse.jdt.core-I20181102-1800.tar.gz
eclipse.jdt.core-I20181102-1800.tar.xz
eclipse.jdt.core-I20181102-1800.zip
Bug 540090 - Unjustified FilerException "Source file already exists" inI20181103-1800I20181102-2120I20181102-1800I20181101-1800
-rw-r--r--org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ElementsImpl9.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ElementsImpl9.java b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ElementsImpl9.java
index 12fb1a65ad..81a5f8a957 100644
--- a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ElementsImpl9.java
+++ b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ElementsImpl9.java
@@ -32,6 +32,7 @@ import org.eclipse.jdt.internal.compiler.lookup.MethodBinding;
import org.eclipse.jdt.internal.compiler.lookup.ModuleBinding;
import org.eclipse.jdt.internal.compiler.lookup.PackageBinding;
import org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding;
+import org.eclipse.jdt.internal.compiler.lookup.TagBits;
import org.eclipse.jdt.internal.compiler.util.HashtableOfModule;
/**
@@ -93,6 +94,9 @@ public class ElementsImpl9 extends ElementsImpl {
if (null == binding) {
return null;
}
+ if ((binding.tagBits & TagBits.HasMissingType) != 0) {
+ return null;
+ }
return new TypeElementImpl(_env, binding, null);
}

Back to the top