[
https://issues.apache.org/jira/browse/LANG-1406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16573137#comment-16573137
]
ASF GitHub Bot commented on LANG-1406:
--------------------------------------
Github user coveralls commented on the issue:
https://github.com/apache/commons-lang/pull/340
[](https://coveralls.io/builds/18383289)
Coverage decreased (-0.04%) to 95.243% when pulling
**590f90889bf61a5570bd98b78e73410a07d7410b on HiuKwok:master** into
**a36c903d4f1065bc59f5e6d2bb0f9d92a5e71d83 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)