You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ba...@apache.org on 2011/07/27 08:02:07 UTC
svn commit: r1151345 -
/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Author: bayard
Date: Wed Jul 27 06:02:06 2011
New Revision: 1151345
URL: http://svn.apache.org/viewvc?rev=1151345&view=rev
Log:
Improving error message when recursion fails TTL in replaceEachRepeatedly. LANG-686
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java?rev=1151345&r1=1151344&r2=1151345&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java Wed Jul 27 06:02:06 2011
@@ -4028,7 +4028,8 @@ public class StringUtils {
// if recursing, this shouldn't be less than 0
if (timeToLive < 0) {
- throw new IllegalStateException("TimeToLive of " + timeToLive + " is less than 0: " + text);
+ throw new IllegalStateException("Output of one loop is the input of another; " +
+ "protecting from potential StackOverflowError");
}
int searchLength = searchList.length;