Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.9.2
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.