Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-333

Avoid calling setAccessible() if not needed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7.0
    • 1.8.1
    • Bean / Property Utils
    • None
    • Windows XP Professional SP3, Xwork 2.1,

    Description

      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);
      }

      Attachments

        Activity

          People

            niallp Niall Pemberton
            lukasz03 Disabled - L-u-k-a-s-z Lenart - OpenSymphony
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: