You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Walter Dorninger (JIRA)" <xm...@xml.apache.org> on 2004/12/16 14:44:03 UTC
[jira] Created: (XMLBEANS-94) getJavaPropertyName() returns propery names starting with uppercase character
getJavaPropertyName() returns propery names starting with uppercase character
-----------------------------------------------------------------------------
Key: XMLBEANS-94
URL: http://nagoya.apache.org/jira/browse/XMLBEANS-94
Project: XMLBeans
Type: Bug
Components: SOM
Versions: Version 2
Reporter: Walter Dorninger
The method getJavaPropertyName() returns property names with the first character being uppercase. This I think is wrong because if you use e.g. apache commons PropertyUtils and try to match a property using the name retrieved by getJavaPropertyName() it does not work because the Property names in the PropertyDescriptor generated by PropertyUtils are LOWER case at the beginning.
e.g.
SchemaProperty[] myProperties = myXMLBeanObject.schemaType().getProperties();
String A = myProperties[0].getJavaPropertyName();
a has the value "MyProperty"
PropertyUtils.getPropertyDescriptor(myXMLBeanObject, A) --> will never work because A starts with an upper case character !!!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Commented: (XMLBEANS-94) getJavaPropertyName() returns propery names starting with uppercase character
Posted by "Michael Kopp (JIRA)" <xm...@xml.apache.org>.
[ http://nagoya.apache.org/jira/browse/XMLBEANS-94?page=comments#action_57009 ]
Michael Kopp commented on XMLBEANS-94:
--------------------------------------
I think this is correct according to the JavaBean spec.
Use Introspector.decapitalize to get the real property name.
> getJavaPropertyName() returns propery names starting with uppercase character
> -----------------------------------------------------------------------------
>
> Key: XMLBEANS-94
> URL: http://nagoya.apache.org/jira/browse/XMLBEANS-94
> Project: XMLBeans
> Type: Bug
> Components: SOM
> Versions: Version 2
> Reporter: Walter Dorninger
>
> The method getJavaPropertyName() returns property names with the first character being uppercase. This I think is wrong because if you use e.g. apache commons PropertyUtils and try to match a property using the name retrieved by getJavaPropertyName() it does not work because the Property names in the PropertyDescriptor generated by PropertyUtils are LOWER case at the beginning.
> e.g.
> SchemaProperty[] myProperties = myXMLBeanObject.schemaType().getProperties();
> String A = myProperties[0].getJavaPropertyName();
> a has the value "MyProperty"
> PropertyUtils.getPropertyDescriptor(myXMLBeanObject, A) --> will never work because A starts with an upper case character !!!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Closed: (XMLBEANS-94) getJavaPropertyName() returns propery names starting with uppercase character
Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-94?page=history ]
Jacob Danner closed XMLBEANS-94:
--------------------------------
Resolution: Won't Fix
This is by design
> getJavaPropertyName() returns propery names starting with uppercase character
> -----------------------------------------------------------------------------
>
> Key: XMLBEANS-94
> URL: http://issues.apache.org/jira/browse/XMLBEANS-94
> Project: XMLBeans
> Type: Bug
> Components: SOM
> Versions: Version 2
> Reporter: Walter Dorninger
>
> The method getJavaPropertyName() returns property names with the first character being uppercase. This I think is wrong because if you use e.g. apache commons PropertyUtils and try to match a property using the name retrieved by getJavaPropertyName() it does not work because the Property names in the PropertyDescriptor generated by PropertyUtils are LOWER case at the beginning.
> e.g.
> SchemaProperty[] myProperties = myXMLBeanObject.schemaType().getProperties();
> String A = myProperties[0].getJavaPropertyName();
> a has the value "MyProperty"
> PropertyUtils.getPropertyDescriptor(myXMLBeanObject, A) --> will never work because A starts with an upper case character !!!
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org