Author: scabanovich
Date: 2012-06-22 17:19:02 -0400 (Fri, 22 Jun 2012)
New Revision: 42180
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java
Log:
JBIDE-12246
https://issues.jboss.org/browse/JBIDE-12246
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java 2012-06-22
19:22:33 UTC (rev 42179)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java 2012-06-22
21:19:02 UTC (rev 42180)
@@ -1327,7 +1327,7 @@
for (String builtin: BuiltInBeanFactory.BUILT_IN) {
IType type = n.getType(builtin);
- if(type != null && !newClassBeans.containsKey(type)) {
+ if(type != null && type.exists() && !newClassBeans.containsKey(type))
{
TypeDefinition t = new TypeDefinition();
t.setType(type, n.getDefinitions(), TypeDefinition.FLAG_NO_ANNOTATIONS);
t.setBeanConstructor(true);