commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <>
Subject [jira] Created: (BEANUTILS-333) Avoid calling setAccessible() if not needed
Date Tue, 16 Dec 2008 23:10:44 GMT
Avoid calling setAccessible() if not needed

                 Key: BEANUTILS-333
             Project: Commons BeanUtils
          Issue Type: Improvement
          Components: Bean / Property Utils
    Affects Versions: 1.7.0
         Environment: Windows XP Professional SP3, Xwork 2.1,
            Reporter: Lukasz Lenart
            Priority: Minor

I already solved the bug in Xwork (see, but the
same problem exists with Common BeanUtils in org.apache.commons.beanutils.MethodUtils.getMatchingAccessibleMethod():558,
add additional check if method is already accessible, like this

if (!method.isAccessible()) {

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

View raw message