Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-369

using PropertyUtilsBean getProperty method does not find attributes in a class when names have a single lower case character

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 1.8.2
    • None
    • Bean / Property Utils
    • None
    • windows xp

    Description

      Using a class that has an attribute named like aRatedCd with get/set methods of getARatedCd() and setARatedCd(String) causes the PropertyDescriptor info to become name=ARatedCd. the read and write methods are found and have the above names. However because the name in the PropertyDescriptor has changed from aRatedCd to ARatedCd using the getProperty(obj, "aRatedCd") method thros a NoSuchMethodException.

      If the aRatedCd attribute name is changed to something like aaRatedCd and the methods are also changed to getAaRatedCd() and setAaRatedCd(String) then the NoSuchMethodException is not thrown when using the getProperty(obj, "aaRatedCd") call.

      Attachments

        Activity

          People

            Unassigned Unassigned
            klamb K Lamb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: