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

getIndexedProperty() should javadoc IndexOutOufBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.7.0
    • 1.8.0
    • Bean / Property Utils
    • None

    Description

      PropertyUtilsBean.getIndexedProperty()'s javadoc declares to throw ArrayIndexOutOfBoundsException, which is correct since the code can access an array. But it can also access a list and therefor throw an IndexOutOufBoundsException, so it should be mentioned in the javadoc as well. Since ArrayIndexOutOfBoundsException is a variation of IndexOutOufBoundsException with essentially the same meaning, one could limit oneself to IndexOutOufBoundsException.

      Attachments

        Activity

          People

            niallp Niall Pemberton
            stock-aitken Torsten Feig
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: