commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject [text] [LANG-123] WordUtils.wrap throws StringIndexOutOfBoundsException when wrapLength is Integer.MAX_VALUE.
Date Fri, 18 May 2018 18:27:42 GMT
Repository: commons-text
Updated Branches:
  refs/heads/master c86c6e445 -> 3778f5822


[LANG-123] WordUtils.wrap throws StringIndexOutOfBoundsException when
wrapLength is Integer.MAX_VALUE.

Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/3778f582
Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/3778f582
Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/3778f582

Branch: refs/heads/master
Commit: 3778f58226d5b24121cc683fc072c36be173450c
Parents: c86c6e4
Author: Gary Gregory <garydgregory@gmail.com>
Authored: Fri May 18 12:27:38 2018 -0600
Committer: Gary Gregory <garydgregory@gmail.com>
Committed: Fri May 18 12:27:38 2018 -0600

----------------------------------------------------------------------
 src/test/java/org/apache/commons/text/WordUtilsTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/3778f582/src/test/java/org/apache/commons/text/WordUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/text/WordUtilsTest.java b/src/test/java/org/apache/commons/text/WordUtilsTest.java
index 416e3d3..f03ba81 100644
--- a/src/test/java/org/apache/commons/text/WordUtilsTest.java
+++ b/src/test/java/org/apache/commons/text/WordUtilsTest.java
@@ -528,7 +528,7 @@ public class WordUtilsTest {
     }
 
     @Test
-    public void testLANG1397() throws Exception {
+    public void testText123() throws Exception {
         // Prior to fix, this was throwing StringIndexOutOfBoundsException
         WordUtils.wrap("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
"
                 + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", Integer.MAX_VALUE);


Mime
View raw message