commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1118) StringUtils.repeat('z', -1) throws NegativeArraySizeException
Date Sun, 26 Apr 2015 10:37:38 GMT

    [ https://issues.apache.org/jira/browse/LANG-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14512980#comment-14512980
] 

Benedikt Ritter commented on LANG-1118:
---------------------------------------

We're in the middle of the SVN -> git migration. I will apply this fix after the migration
has finished.

> 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_.



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

Mime
View raw message