Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 631FD10E6F for ; Tue, 28 Apr 2015 15:30:11 +0000 (UTC) Received: (qmail 43453 invoked by uid 500); 28 Apr 2015 15:30:06 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 43352 invoked by uid 500); 28 Apr 2015 15:30:06 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 43339 invoked by uid 99); 28 Apr 2015 15:30:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2015 15:30:06 +0000 Date: Tue, 28 Apr 2015 15:30:06 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LANG-1118) StringUtils.repeat('z', -1) throws NegativeArraySizeException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LANG-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14517204#comment-14517204 ] ASF GitHub Bot commented on LANG-1118: -------------------------------------- Github user rikles commented on the pull request: https://github.com/apache/commons-lang/pull/68#issuecomment-97105866 Close due to rebase on master > 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)