You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Oleg Timoshenko (JIRA)" <ji...@apache.org> on 2006/10/20 07:45:35 UTC

[jira] Created: (BEANUTILS-251) PropertyUtils.describe() returns wrong fields names

PropertyUtils.describe() returns wrong fields names
---------------------------------------------------

                 Key: BEANUTILS-251
                 URL: http://issues.apache.org/jira/browse/BEANUTILS-251
             Project: Commons BeanUtils
          Issue Type: Bug
    Affects Versions: 1.7.0 Release
         Environment: WinXP SP2
            Reporter: Oleg Timoshenko


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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Resolved: (BEANUTILS-251) PropertyUtils.describe() returns wrong fields names

Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BEANUTILS-251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niall Pemberton resolved BEANUTILS-251.
---------------------------------------

    Resolution: Invalid

> PropertyUtils.describe() returns wrong fields names
> ---------------------------------------------------
>
>                 Key: BEANUTILS-251
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-251
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>    Affects Versions: 1.7.0
>         Environment: WinXP SP2
>            Reporter: Oleg Timoshenko
>            Assignee: 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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Commented: (BEANUTILS-251) PropertyUtils.describe() returns wrong fields names

Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BEANUTILS-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509490 ] 

Niall Pemberton commented on BEANUTILS-251:
-------------------------------------------

Henri, do you have time/plans to do the FAQ or can we just close as invalid (or punt to post 1.8.0)?

> PropertyUtils.describe() returns wrong fields names
> ---------------------------------------------------
>
>                 Key: BEANUTILS-251
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-251
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>    Affects Versions: 1.7.0
>         Environment: WinXP SP2
>            Reporter: Oleg Timoshenko
>            Assignee: 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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Commented: (BEANUTILS-251) PropertyUtils.describe() returns wrong fields names

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/BEANUTILS-251?page=comments#action_12443867 ] 
            
Henri Yandell commented on BEANUTILS-251:
-----------------------------------------

This has come up before - I'll look into making a FAQ for it.

The Bean specification defines the IV in IVal to be an acronym and not a single letter followed by a word Val. As far as I know, the code that is doing this is down in java.beans rather than in BeanUtils, so trying to work around the spec is going to be painful and confusing.

Once the FAQ exists I'll be WONTFIXing this issue.

> PropertyUtils.describe() returns wrong fields names
> ---------------------------------------------------
>
>                 Key: BEANUTILS-251
>                 URL: http://issues.apache.org/jira/browse/BEANUTILS-251
>             Project: Commons BeanUtils
>          Issue Type: Bug
>    Affects Versions: 1.7.0 Release
>         Environment: WinXP SP2
>            Reporter: Oleg Timoshenko
>
> 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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Updated: (BEANUTILS-251) PropertyUtils.describe() returns wrong fields names

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/BEANUTILS-251?page=all ]

Henri Yandell updated BEANUTILS-251:
------------------------------------

    Fix Version/s: 1.8.0

Make a FAQ by 1.8.

> PropertyUtils.describe() returns wrong fields names
> ---------------------------------------------------
>
>                 Key: BEANUTILS-251
>                 URL: http://issues.apache.org/jira/browse/BEANUTILS-251
>             Project: Commons BeanUtils
>          Issue Type: Bug
>    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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Updated: (BEANUTILS-251) PropertyUtils.describe() returns wrong fields names

Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
     [ 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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org