Somewhere in the BeanInstantiator, there is the following code:

  |     // create the setter method name from the property name
  |       String setterMethodName = 
"set"+propertyName.substring(0,1).toUpperCase()+propertyName.substring(1);
  |       
  |       // find the setter method
  |       Method[] methods = clazz.getDeclaredMethods();
  | 

The getDeclardMethods only returns the methods defined in the class itself, it 
does not take into account methods of the superclass. This gives problems if 
you want to make a base class with some general properties, and use a subclass. 
It will not find the general properties (i.e. setters).
Is there a special reason for this behaviour?

James


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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to