[jboss-dev-forums] [Design the new POJO MicroContainer] - PropertyInfo type creation
alesj
do-not-reply at jboss.com
Wed Aug 8 13:45:38 EDT 2007
I stumbled upon this issue when testing CallbackItems:
The getter returns non-generic List type (ReflectClassInfoImpl), but the setter has generic parameter (ParameterizedClassInfo).
| public List getBeans()
| {
| return beans;
| }
|
| public void setBeans(List<SimpleBean> beans)
| {
| this.beans = beans;
| }
|
When we create PropertyInfo we use getter's type (in AbstractBeanInfoFactory).
But when I do a contextual injection / callback check, I use setter's type.
What would be a proper fix?
To use ParameterizedClassInfo over plain ReflectClassInfoImpl?
Or just log a warning?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072126#4072126
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072126
More information about the jboss-dev-forums
mailing list