[jboss-dev-forums] [Design the new POJO MicroContainer] - Installing instance of wrong class gives weird error

wolfc do-not-reply at jboss.com
Wed Jun 11 07:21:48 EDT 2008


Installing an instance into MC while specifying another class in the bean meta data yields:
java.lang.IllegalArgumentException: Wrong arguments. start for target org.jboss.ejb3.stateful.StatefulContainer at 1f8f8c8 expected=[] actual=[]
instead of:
java.lang.IllegalArgumentException: object is not an instance of declaring class
(The last one could also use some decoration.)

ReflectionUtils should actually have the method as context parameter and not just the name. It should then check whether the declaring class is assignable from the target class.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157310#4157310

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157310



More information about the jboss-dev-forums mailing list