commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Loic Guibert (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LANG-1118) StringUtils.repeat('z', -1) throws NegativeArraySizeException
Date Thu, 23 Apr 2015 11:31:38 GMT
Loic Guibert created LANG-1118:
----------------------------------

             Summary: StringUtils.repeat('z', -1) throws NegativeArraySizeException
                 Key: LANG-1118
                 URL: https://issues.apache.org/jira/browse/LANG-1118
             Project: Commons Lang
          Issue Type: Bug
          Components: lang.*
            Reporter: Loic Guibert
            Priority: Minor


Unlike what is said in JavaDoc comment, when passing a negative repeat value to the *StringUtils.repeat(char,
int)* function, it doesn't return an empty String but throws a _NegativeArraySizeException_.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message