Author: scabanovich
Date: 2011-04-29 20:44:10 -0400 (Fri, 29 Apr 2011)
New Revision: 30990
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/definition/SeamBeansDefinition.java
Log:
JBIDE-3120
https://issues.jboss.org/browse/JBIDE-3120
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/definition/SeamBeansDefinition.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/definition/SeamBeansDefinition.java 2011-04-30
00:40:32 UTC (rev 30989)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/definition/SeamBeansDefinition.java 2011-04-30
00:44:10 UTC (rev 30990)
@@ -25,6 +25,7 @@
import org.jboss.tools.cdi.internal.core.impl.definition.DefinitionContext;
import org.jboss.tools.cdi.internal.core.impl.definition.FieldDefinition;
import org.jboss.tools.cdi.internal.core.impl.definition.MethodDefinition;
+import org.jboss.tools.cdi.internal.core.impl.definition.ParameterDefinition;
import org.jboss.tools.cdi.internal.core.impl.definition.TypeDefinition;
import org.jboss.tools.cdi.seam.config.core.ConfigDefinitionContext;
import org.jboss.tools.cdi.seam.config.core.scanner.SAXNode;
@@ -125,6 +126,15 @@
SeamMethodDefinition m = def.getMethod(method);
if(m != null) {
mergeAnnotations(m, methodDef, context);
+ List<ParameterDefinition> psDefs = methodDef.getParameters();
+ List<SeamParameterDefinition> ps = m.getParameters();
+ if(ps.size() != psDefs.size()) {
+ System.out.println("different number of parameters in MethodDefinition and
SeamMethodDefinition for method " + method.getDeclaringType().getElementName() +
"." + method.getElementName());
+ } else {
+ for (int i = 0; i < ps.size(); i++) {
+ mergeAnnotations(ps.get(i), psDefs.get(i), context);
+ }
+ }
}
}