You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Loic Guibert (JIRA)" <ji...@apache.org> on 2015/04/28 17:38:06 UTC
[jira] [Updated] (LANG-1118) StringUtils.repeat('z', -1) throws
NegativeArraySizeException
[ https://issues.apache.org/jira/browse/LANG-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Loic Guibert updated LANG-1118:
-------------------------------
Description:
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_.
See PR #72 : https://github.com/apache/commons-lang/pull/72
was:
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_.
> 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
> Assignee: Benedikt Ritter
> 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_.
> See PR #72 : https://github.com/apache/commons-lang/pull/72
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)