Author: scabanovich
Date: 2011-05-12 19:04:33 -0400 (Thu, 12 May 2011)
New Revision: 31279
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/TypeDefinition.java
Log:
JBIDE-8935
https://issues.jboss.org/browse/JBIDE-8935
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 2011-05-12
21:00:29 UTC (rev 31278)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/TypeDefinition.java 2011-05-12
23:04:33 UTC (rev 31279)
@@ -77,22 +77,23 @@
if(ms[i].isConstructor()) {
hasConstructor = true;
if(ms[i].getNumberOfParameters() == 0 || m.getInjectAnnotation() != null) {
- hasBeanConstructor = true;
+ setBeanConstructor(true);
}
}
}
if(!hasConstructor) {
- hasBeanConstructor = true;
+ setBeanConstructor(true);
}
-// if(!hasBeanConstructor &&
getType().getFullyQualifiedName().equals(CDIConstants.WELD_BEAN_MANAGER_TYPE_NAME)) {
-// hasBeanConstructor = true;
-// }
}
+ public void setBeanConstructor(boolean b) {
+ hasBeanConstructor = b;
+ }
+
public void checkConstructor() {
for (MethodDefinition m: methods) {
if(m.isConstructor() &&
m.getAnnotation(CDIConstants.INJECT_ANNOTATION_TYPE_NAME) != null) {
- hasBeanConstructor = true;
+ setBeanConstructor(true);
}
}
}