Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-94

getJavaPropertyName() returns propery names starting with uppercase character

    XMLWordPrintableJSON

Details

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            wdorning Walter Dorninger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: