We have a class A which extends C. We then have the following beans:
| <bean name="BBean" class="B"> | <property name="myC"><inject bean="ABean"/></property> | </bean> | | <bean name="ABean" class="A"> | </bean> | At runtime, validation reports an error though the injection works fine: | BBean -> java.lang.IllegalArgumentException: Wrong arguments. setMyC expected=[C] actual=[A] | at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:241) | at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:173) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930867#3930867 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930867 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
