[ http://issues.apache.org/jira/browse/BEANUTILS-251?page=all ]

Niall Pemberton updated BEANUTILS-251:
--------------------------------------

    Component/s: Utils (Bean, Property, Method)

> PropertyUtils.describe() returns wrong fields names
> ---------------------------------------------------
>
>                 Key: BEANUTILS-251
>                 URL: http://issues.apache.org/jira/browse/BEANUTILS-251
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Utils (Bean, Property, Method)
>    Affects Versions: 1.7.0
>         Environment: WinXP SP2
>            Reporter: Oleg Timoshenko
>         Assigned To: Henri Yandell
>             Fix For: 1.8.0
>
>
> I have the following bean:
> public class SumTestBean2 {
>       private int iVal;
>       public int getIVal() {
>               return iVal;
>       }
>       public void setIVal(int val) {
>               iVal = val;
>       }
> }
> ... and the following snippet of code:
> SumTestBean2 stb = new SumTestBean2();
> stb.setIVal(12);
> Map map = PropertyUtils.describe(stb);
> for(Object o : map.keySet()) System.out.println(o);
> .. prints out the following:
> IVal
> class
> ====
> Note that instead of "IVal" there should be "iVal" - uppercase letter appears 
> instead of lowercase. 
> This happens only when field has first letter - in lower case followed by 
> uppercase letter.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to