[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Commented: (XMLBEANS-94) getJavaPropertyName() returns propery names starting with uppercase
From:       "Michael Kopp (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2004-12-23 11:22:03
Message-ID: 1269413216.1103800923994.JavaMail.apache () nagoya
[Download RAW message or body]

     [ 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic