You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2013/10/21 07:44:44 UTC
[jira] [Updated] (LANG-686)
StringUtils.replaceEachRepeatedly("aaa", new String[]{"aa"}, new
String[]{"aXa"}); throw an exception
[ https://issues.apache.org/jira/browse/LANG-686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Yandell updated LANG-686:
-------------------------------
Fix Version/s: (was: 3.x)
Review Patch
> StringUtils.replaceEachRepeatedly("aaa", new String[]{"aa"}, new String[]{"aXa"}); throw an exception
> -----------------------------------------------------------------------------------------------------
>
> Key: LANG-686
> URL: https://issues.apache.org/jira/browse/LANG-686
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.*
> Affects Versions: 2.6
> Environment: jdk 1.6.24, windows xp pro sp3, eclipse helios
> Reporter: qed
> Fix For: Review Patch
>
> Attachments: LANG-686.patch
>
>
> After executing line
> StringUtils.replaceEachRepeatedly("aaa", new String[]{"aa"}, new String[]{"aXa"});
> exception is thrown:
> Exception in thread "main" java.lang.IllegalStateException: TimeToLive of -1 is less than 0: aXaXa
> at org.apache.commons.lang.StringUtils.replaceEach(StringUtils.java:3986)
> at org.apache.commons.lang.StringUtils.replaceEach(StringUtils.java:4099)
> at org.apache.commons.lang.StringUtils.replaceEach(StringUtils.java:4099)
> at org.apache.commons.lang.StringUtils.replaceEachRepeatedly(StringUtils.java:3920)
--
This message was sent by Atlassian JIRA
(v6.1#6144)