"scott.stark(a)jboss.org" wrote :
| Either this code or the caller needs to validate that a getter exists.
|
The code should be:
| JoinpointFactory jpf = info.getBeanInfo().getJoinpointFactory();
| MethodInfo minfo = info.getGetter();
| + if (minfo == null)
| + throw new IllegalArgumentException("Property is write only");
| return getMethodJoinpoint(null, jpf, minfo.getName(), null, null);
|
The preinstantiated lookup should be using a different mechanism
that first checks whether the property is readable
rather than logging a warning when it is not.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000939#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...