[ https://issues.apache.org/jira/browse/BEANUTILS-333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12657277#action_12657277 ]
Paul Benedict commented on BEANUTILS-333: ----------------------------------------- Good point. > Avoid calling setAccessible() if not needed > ------------------------------------------- > > Key: BEANUTILS-333 > URL: https://issues.apache.org/jira/browse/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 > http://jira.opensymphony.com/browse/XW-661), 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()) { > method.setAccessible(true); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.