Author: scabanovich
Date: 2010-12-30 11:00:27 -0500 (Thu, 30 Dec 2010)
New Revision: 27834
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIConstants.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/TypeDefinition.java
Log:
JBIDE-8017
https://issues.jboss.org/browse/JBIDE-8017
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIConstants.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIConstants.java 2010-12-30
15:54:13 UTC (rev 27833)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIConstants.java 2010-12-30
16:00:27 UTC (rev 27834)
@@ -85,4 +85,6 @@
public String ANNOTATION_LITERAL_TYPE_NAME =
"javax.enterprise.util.AnnotationLiteral";
+ public String WELD_BEAN_MANAGER_TYPE_NAME =
"org.jboss.weld.manager.BeanManagerImpl";
+
}
\ No newline at end of file
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/TypeDefinition.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/TypeDefinition.java 2010-12-30
15:54:13 UTC (rev 27833)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/TypeDefinition.java 2010-12-30
16:00:27 UTC (rev 27834)
@@ -73,6 +73,9 @@
if(!hasConstructor) {
hasBeanConstructor = true;
}
+ if(!hasBeanConstructor &&
getType().getFullyQualifiedName().equals(CDIConstants.WELD_BEAN_MANAGER_TYPE_NAME)) {
+ hasBeanConstructor = true;
+ }
}
public ParametedType getSuperType() {