[
https://issues.apache.org/jira/browse/LANG-1406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16688565#comment-16688565
]
ASF GitHub Bot commented on LANG-1406:
--------------------------------------
Github user coveralls commented on the issue:
https://github.com/apache/commons-lang/pull/381
[](https://coveralls.io/builds/20129896)
Coverage increased (+0.002%) to 95.235% when pulling
**77ad336da790dc522216300bfb20d74b779a9d62 on drajakumar:master** into
**c4d0dbcb56b8980b1b3b7c85d00ad6540788c08e on apache:master**.
> 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
>
> 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)