[ 
https://issues.apache.org/jira/browse/LANG-1406?focusedWorklogId=241967&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-241967
 ]

ASF GitHub Bot logged work on LANG-1406:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/May/19 19:14
            Start Date: 14/May/19 19:14
    Worklog Time Spent: 10m 
      Work Description: geratorres commented on issue #422: LANG-1406: avoid 
StringIndexOutOfBounds exceptions for some cases of …
URL: https://github.com/apache/commons-lang/pull/422#issuecomment-492371990
 
 
   > We have a variety of pull requests attempting to address 
[LANG-1406](https://issues.apache.org/jira/browse/LANG-1406), namely: this pull 
request, #340, #381, and your other one at #420. @geratorres have you looked at 
#340 and #381 yet? I think that #381 might be closer, but I'm not sure.
   
   yes, I already checked those pull request, I think that this pull request 
doesn't look very well  because I also tried to resolve another problem I 
detected, I have another commit that looks better than this and the other pull 
requests, this new commit is focused to resolve only the issue 1406, it has 
minimal changes.  I'm going to close this pull request, delete the fork and 
create a new pull request, sorry for the bunch of pull requests.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 241967)
    Time Spent: 1h 50m  (was: 1h 40m)

> StringIndexOutOfBoundsException in StringUtils.replaceIgnoreCase
> ----------------------------------------------------------------
>
>                 Key: LANG-1406
>                 URL: https://issues.apache.org/jira/browse/LANG-1406
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>            Reporter: Michael Ryan
>            Priority: Major
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> STEPS TO REPRODUCE:
> {code}
> StringUtils.replaceIgnoreCase("\u0130x", "x", "")
> {code}
> EXPECTED: "\u0130" is returned.
> ACTUAL: StringIndexOutOfBoundsException
> This happens because the replace method is assuming that text.length() == 
> text.toLowerCase().length(), which is not true for certain characters.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to