commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Commented: (BEANUTILS-18) [beanutils] PropertyUtils.isReadable() and PropertyUtils.getProperty() not consistent
Date Thu, 12 Jul 2007 05:51:04 GMT

    [ https://issues.apache.org/jira/browse/BEANUTILS-18?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511973
] 

Henri Yandell commented on BEANUTILS-18:
----------------------------------------

I'm +1 to the view that this is a bug and not a backwards compatibility issue. isReadable
should return false if the method is not readable.

> [beanutils] PropertyUtils.isReadable() and PropertyUtils.getProperty() not consistent
> -------------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-18
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-18
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>         Environment: Operating System: Windows 2000
> Platform: PC
>            Reporter: Maarten Coene
>             Fix For: 1.8.0
>
>         Attachments: BEANUTILS-18-PropertyUtilsBean.patch, patch-PropertyUtilsBean.txt,
patch-PropertyUtilsTestCase.txt, PropertyUtilsTest.java
>
>
> Hi,
> When the object passed to PropertyUtils is a non-public class, the
> PropertyUtils.isReadable() method returns true for an existing property while
> the PropertyUtils.getProperty() method for the same property throws a
> NoSuchMethodException. 
> I'll attach a junit test that illustrates the problem.
> regards,
> Maarten

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message