You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/10/02 12:25:53 UTC
DO NOT REPLY [Bug 23558] New: -
Problem with BeanUtils.setProperty when the name of property of Bean have on second caracter a uppercase
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23558
Problem with BeanUtils.setProperty when the name of property of Bean have on second caracter a uppercase
Summary: Problem with BeanUtils.setProperty when the name of
property of Bean have on second caracter a uppercase
Product: Commons
Version: Nightly Builds
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Blocker
Priority: Other
Component: Bean Utilities
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: dutrieux@pasteur.fr
I have a bean with one property hEmail. I fact the Bean have these methods
setHEmail(String hEmail) and getHEmail().
There is a problem with these instruction :
BeanUtils.setProperty(bean, "hEmail", new String("dupond"));
or
BeanUtils.copyProperty(bean, "hEmail", new String("dupond"));
The property hEmail does not contain "dupond" after this instruction.
If I check my property name with the command :
String name = new
PropertyUtilsBean().getPropertyDescriptors(mainBean)[0].getName();
The result of name is HEmail (not hEmail)
Info : if I change the property of bean hEmail by hemail there is also no problem.
I fact I think there is a problem with the command
PropertyUtilsBean().getPropertyDescriptors(mainBean), that don't return
correctly the property of the bean when the name of property have on second
character a uppercase.
Version JVM : 1.4.2-b18 or 1.4.1_02-b06
Version BeanUtils (Nightly Builds) v1.6.1 2003-10-01
Best regards
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org