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

Niall Pemberton resolved BEANUTILS-364.
---------------------------------------

    Resolution: Duplicate

> PropertyUtils.copyProperties() does not reads Boolean getters starting with 
> "is" (for example: isReadable())
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-364
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-364
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>    Affects Versions: 1.7.0, 1.8.0-BETA, 1.8.0
>         Environment: JDK 1.5
>            Reporter: Evgeni
>
> _PropertyUtils_ uses _PropertyUtilsBean_ which uses it's 
> _getPropertyDescriptors(class)_ to get _descriptors_ array.
> \\This method internally uses _java.beans.Introspector_ which has following 
> problem:
> {quote}java.lang.Boolean isSomeProperty(){quote}
> is not recognized as getter for _someProperty_, however it does recognize:
> {quote}boolean isSomeProperty(){quote}
> or
> {quote}java.lang.Boolean getSomeProperty(){quote}
> This creates a problem if you use Autoboxing/Unboxing (JDK 1.5)
> I suggest to add some processing to _getPropertyDescriptors(class)_  to 
> workaround _java.beans.Introspector_'s problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to