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

FluentPropertyBeanIntrospector does not use the same naming algorithm as DefaultBeanIntrospector

    XMLWordPrintableJSON

Details

    Description

      If you have a bean with the methods `URI getURI()` and `void setURI(URI)` the `DefaultBeanIntrospector` will find the property `URI` with the expected getter and setter. The `FluentPropertyBeanIntrospector` will instead find the property `uRI`, which (imo) is incorrect; you end up with a duplicate of the same property when using the two introspectors together.

      `DefaultBeanIntrospector` uses `Introspector#decapitalize` whereas `FluentPropertyBeanIntrospector` uses it's internal method `propertyName` which is where the difference arises from. `FluentPropertyBeanIntrospector` should just use `Introspector#decapitalize` when generating names.

      Attachments

        1. beanutils-474.diff
          3 kB
          Michael Grove

        Activity

          People

            Unassigned Unassigned
            mhgrove Michael Grove
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified