[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: UnwrapValueUnitTestCase.testCollectionUnwrap failure on
scott.stark@jboss.org
do-not-reply at jboss.com
Wed Nov 19 17:03:38 EST 2008
The problem is in determining the component type when a java.util.Set generic is passed in. In this case its a Set[TestEnum], but the component type is determined to be java.lang.Integer.
| 441 DEBUG [DefaultMetaValueFactory] unwrapCollection, type: ReflectClassInfoImpl at 30cb4b{name=java.util.Set}
| 441 DEBUG [DefaultMetaValueFactory] unwrapCollection, componentType: java.lang.Integer
| 443 DEBUG [DefaultMetaValueFactory] convertValue failure(For input string: "TWO"), value=TWO, value.class: java.lang.String, typeInfo: java.lang.Integer
|
Just adding a logging statement can change the failure or even fix the problem. Its some issue with reflection on the generic element type that is suspect.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4190647#4190647
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4190647
More information about the jboss-dev-forums
mailing list