Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 146BE71A5 for ; Mon, 10 Oct 2011 02:24:55 +0000 (UTC) Received: (qmail 53247 invoked by uid 500); 10 Oct 2011 02:24:54 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 53164 invoked by uid 500); 10 Oct 2011 02:24:54 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 53080 invoked by uid 99); 10 Oct 2011 02:24:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2011 02:24:54 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2011 02:24:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C0966300AE7 for ; Mon, 10 Oct 2011 02:24:30 +0000 (UTC) Date: Mon, 10 Oct 2011 02:24:30 +0000 (UTC) From: "Henri Yandell (Updated) (JIRA)" To: issues@commons.apache.org Message-ID: <2080808039.13449.1318213470790.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1344198695.10581.1299763259485.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (LANG-686) StringUtils.replaceEachRepeatedly("aaa", new String[]{"aa"}, new String[]{"aXa"}); throw an exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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.0.2) 3.0.3 > 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: 3.0.3 > > > 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira