This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new f43a9aa5a StringUtils.repeat(String, [String,] int) now throws 
IllegalArgumentException instead of NegativeArraySizeException (#1644).
f43a9aa5a is described below

commit f43a9aa5a7ead22b00ccab316e9d35ab4d6aff8e
Author: Gary Gregory <[email protected]>
AuthorDate: Fri May 15 11:36:47 2026 +0000

    StringUtils.repeat(String, [String,] int) now throws
    IllegalArgumentException instead of NegativeArraySizeException (#1644).
---
 src/changes/changes.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 9bfbc3a38..210de523d 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -145,6 +145,7 @@ java.lang.NullPointerException: Cannot invoke
     <action                   type="fix" dev="ggregory" due-to="Omkhar 
Arasaratnam, Gary Gregory">RandomStringUtils.random(...): Can hang when the 
specified [start, end) range contains ONLY rejected code points (UNASSIGNED, 
PRIVATE_USE, SURROGATE). The loop increments count and retries indefinitely 
(#1638).</action>
     <action                   type="fix" dev="ggregory" due-to="Omkhar 
Arasaratnam, Gary Gregory">TimedSemaphore.shutdown() must wake threads blocked 
in acquire() (#1639).</action>
     <action                   type="fix" dev="ggregory" due-to="Omkhar 
Arasaratnam, Gary Gregory">NaN bypass in primitive double range validators 
(#1640).</action>
+    <action issue="LANG-1826" type="fix" dev="ggregory" due-to="Cyl, Gary 
Gregory, Piotr Karwasz">StringUtils.repeat(String, [String,] int) now throws 
IllegalArgumentException instead of NegativeArraySizeException (#1644).</action>
     <!-- ADD -->
     <action                   type="add" dev="ggregory" due-to="Gary 
Gregory">Add JavaVersion.JAVA_27.</action>
     <action                   type="add" dev="ggregory" due-to="Gary 
Gregory">Add SystemUtils.IS_JAVA_27.</action>

Reply via email to