Author: scabanovich
Date: 2011-04-29 17:29:02 -0400 (Fri, 29 Apr 2011)
New Revision: 30985
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/TypeDefinition.java
Log:
JBIDE-3120
https://issues.jboss.org/browse/JBIDE-3120
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-04-29
21:03:17 UTC (rev 30984)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/TypeDefinition.java 2011-04-29
21:29:02 UTC (rev 30985)
@@ -89,6 +89,14 @@
// }
}
+ public void checkConstructor() {
+ for (MethodDefinition m: methods) {
+ if(m.isConstructor() &&
m.getAnnotation(CDIConstants.INJECT_ANNOTATION_TYPE_NAME) != null) {
+ hasBeanConstructor = true;
+ }
+ }
+ }
+
public void annotationKindChanged(String typeName, IRootDefinitionContext context) {
super.annotationKindChanged(typeName, context);
for (FieldDefinition f: fields) f.annotationKindChanged(typeName, context);