commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Commented: (BEANUTILS-106) Problem with BeanUtils.setProperty when the name of property of Bean have on second caracter a uppercase
Date Thu, 11 Feb 2010 15:52:28 GMT

    [ https://issues.apache.org/jira/browse/BEANUTILS-106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832538#action_12832538
] 

Niall Pemberton commented on BEANUTILS-106:
-------------------------------------------

@Pawel

Craig pointed out that BeanUtils is following the JavaBean specification wrt to property names
and I see nothing in your post that persuades me to change that decision. If we implemented
your suggestion then anyone who had use the correct name in this circumstance would no longer
work

> Problem with BeanUtils.setProperty when the name of property of Bean have on second caracter
a uppercase
> --------------------------------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-106
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-106
>             Project: Commons BeanUtils
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>         Environment: Operating System: Windows XP
> Platform: PC
>            Reporter: Dutrieux Olivier
>            Priority: Blocker
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message