Hi! I've a question to the BeanUtils.describe() method. In the javadoc of this method it is stated:
"Return the entire set of properties for which the specified bean provides a read method. This map can be fed back to a call to BeanUtils.populate() to reconsitute the same set of properties, modulo differences for read-only and write-only properties." I tried: BeanUtils.populate(target,BeanUtils.describe(source)); but got: java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodException: Property 'class' has no setter method The Bean source has two String-attributes and target has the same two attributes, but of type int. The problem is, that describe() finds the getClass() method of java.lang.Object and writes a key "class" with value "class test.Source" in the resulting map. This property can't be set in the target-Bean, of course. I must do something wrong, because with this behaviour it'll never be possible to transfer properties form one to another object (even if the objects are instances of the same class a setClass() method wouldn't be found). My workaround is to delete the key 'class' from the map. Can somebody help me? Thanks in advance Alexander Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>