[jboss-dev-forums] [Design of JBossXB] - Re: annotations on properties declared in interfaces
adrian@jboss.org
do-not-reply at jboss.com
Thu Oct 25 10:55:51 EDT 2007
The NestedPropertyInfo is used when there is more than one setter for the property
and no getter to resolve which one should get used.
Instead it tries to guess (using isAssignable) at runtime based on what you pass to the api
If the parameter is not assignable to any, it throws that exception.
e.g.
| public void setSomething(Collection c);
| public void setSomething(String s);
|
is "something' a Collection or a String? The answer is it depends what "value" you
pass to PropertyInfo.set(Object bean, Object value).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098871#4098871
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098871
More information about the jboss-dev-forums
mailing list