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

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

                Author: ASF GitHub Bot
            Created on: 23/May/19 18:17
            Start Date: 23/May/19 18:17
    Worklog Time Spent: 10m 
      Work Description: cesartxt commented on issue #423: LANG-1406: replace 
uses indexOfIgnorecase
URL: https://github.com/apache/commons-lang/pull/423#issuecomment-495328645
 
 
   The simplest solution I have seen for this issue!
 
----------------------------------------------------------------
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:
us...@infra.apache.org


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

    Worklog Id:     (was: 247603)
    Time Spent: 2h 40m  (was: 2.5h)

> 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: 2h 40m
>  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