[jira] [Updated] (LANG-1475) StringUtils.unwrap incorrect throw StringIndexOutOfBoundsException

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (LANG-1475) StringUtils.unwrap incorrect throw StringIndexOutOfBoundsException

ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/LANG-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Silence Tai updated LANG-1475:
------------------------------
    Summary: StringUtils.unwrap incorrect throw StringIndexOutOfBoundsException  (was: StringUtils.unwrap StringIndexOutOfBoundsException)

> StringUtils.unwrap incorrect throw StringIndexOutOfBoundsException
> ------------------------------------------------------------------
>
>                 Key: LANG-1475
>                 URL: https://issues.apache.org/jira/browse/LANG-1475
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>            Reporter: Silence Tai
>            Priority: Major
>             Fix For: 3.10
>
>   Original Estimate: 10m
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Call
> {code:java} StringUtils.unwrap("a", 'a'); {code}
> or
> {code:java} StringUtils.unwrap("a", "a"); {code}
> Throw Exception:
>  *java.lang.StringIndexOutOfBoundsException: begin 1, end 0, length 1*



--
This message was sent by Atlassian Jira
(v8.3.2#803003)