commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (BEANUTILS-474) FluentPropertyBeanIntrospector does not use the same naming algorithm as DefaultBeanIntrospector
Date Wed, 01 Jun 2016 06:05:12 GMT

     [ https://issues.apache.org/jira/browse/BEANUTILS-474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gary Gregory closed BEANUTILS-474.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.9.3

In SVN trunk.

> FluentPropertyBeanIntrospector does not use the same naming algorithm as DefaultBeanIntrospector
> ------------------------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-474
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-474
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>    Affects Versions: 1.9.2
>            Reporter: Michael Grove
>            Priority: Minor
>              Labels: naming, property
>             Fix For: 1.9.3
>
>         Attachments: beanutils-474.diff
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message