Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Brychcy2018-10-13 09:45:26 +0000
committerTill Brychcy2018-10-13 13:53:27 +0000
commitd33fe2c4fa66e382227d407614e9d343a136e103 (patch)
tree2876b8797692ba0dedb412730fcf47360dddc032 /org.eclipse.jdt.compiler.apt
parentf6a107d3bbee6b3bf3da01547bbaf1ab5e41734d (diff)
downloadeclipse.jdt.core-d33fe2c4fa66e382227d407614e9d343a136e103.tar.gz
eclipse.jdt.core-d33fe2c4fa66e382227d407614e9d343a136e103.tar.xz
eclipse.jdt.core-d33fe2c4fa66e382227d407614e9d343a136e103.zip
Bug 540090 - Unjustified FilerException "Source file already exists" inI20181013-1800
Diffstat (limited to 'org.eclipse.jdt.compiler.apt')
-rw-r--r--org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ElementsImpl.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ElementsImpl.java b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ElementsImpl.java
index 2e13d0c99f..ecc54ece1c 100644
--- a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ElementsImpl.java
+++ b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ElementsImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2017 BEA Systems, Inc. and others
+ * Copyright (c) 2006, 2018 BEA Systems, Inc. and others
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -649,6 +649,9 @@ public class ElementsImpl implements Elements {
if (null == binding) {
return null;
}
+ if((binding.tagBits & TagBits.HasMissingType) != 0) {
+ return null;
+ }
return new TypeElementImpl(_env, binding, null);
}

Back to the top