You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2006/11/06 05:54:40 UTC

[jira] Updated: (BEANUTILS-256) getIndexedProperty() should javadoc IndexOutOufBoundsException

     [ http://issues.apache.org/jira/browse/BEANUTILS-256?page=all ]

Niall Pemberton updated BEANUTILS-256:
--------------------------------------

    Component/s: Utils (Bean, Property, Method)

> getIndexedProperty() should javadoc IndexOutOufBoundsException
> --------------------------------------------------------------
>
>                 Key: BEANUTILS-256
>                 URL: http://issues.apache.org/jira/browse/BEANUTILS-256
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Utils (Bean, Property, Method)
>    Affects Versions: 1.7.0
>            Reporter: Torsten Feig
>         Assigned To: Niall Pemberton
>            Priority: Trivial
>             Fix For: 1.8.0
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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