[
https://issues.apache.org/jira/browse/LANG-1725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18046972#comment-18046972
]
Jagdish Singh Bisht commented on LANG-1725:
-------------------------------------------
Hi all, I’d like to work on this issue if there is agreement on the expected
behavior.
Before starting, could you please clarify:
- In which conversion methods should IllegalArgumentException (or
NumberFormatException) replace IndexOutOfBoundsException?
- Are there cases where IndexOutOfBoundsException is still considered
acceptable?
Once confirmed, I can prepare a small PR with focused changes and unit tests.
Thanks!
> Conversion should throw IllegalArgumentException instead of
> IndexOutfBoundsException
> ------------------------------------------------------------------------------------
>
> Key: LANG-1725
> URL: https://issues.apache.org/jira/browse/LANG-1725
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.*
> Reporter: Elliotte Rusty Harold
> Priority: Major
>
> see https://github.com/apache/commons-lang/pull/1139
> The original exception should be wrapped.
> At least some of these should be NumberFormatException, a subclass of
> IllegalArgumentException.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)