[jboss-dev-forums] [Design of JBossXB] - Re: annotations on properties declared in interfaces

alex.loubyansky@jboss.com do-not-reply at jboss.com
Thu Oct 25 18:01:10 EDT 2007


"adrian at jboss.org" wrote : NOTE: Fundamentally, this is using java.lang.Class.getDeclaredMethods()
  | and repeating for all super classes and finally matching the total set
  | using getters and setters.
  | 
  | Try doing YourClass.class.getDeclaredMethods() followed by super classes
  | and see what it says, or alternatively use BeanInfo.getMethods() to see
  | the whole thing.

I'll try that. With the introduction of interfaces in metadata API we have a lot of errors because now property infos are reflect the interfaces and not the implementation classes, despite the fact that getProperty(name) is called on the implementation class.

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

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



More information about the jboss-dev-forums mailing list