Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
Version 2
-
None
-
None
Description
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 !!!