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 15A6EC2DE for ; Sun, 10 Jun 2012 12:43:43 +0000 (UTC) Received: (qmail 49580 invoked by uid 500); 10 Jun 2012 12:43:42 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 49509 invoked by uid 500); 10 Jun 2012 12:43:42 -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 49501 invoked by uid 99); 10 Jun 2012 12:43:42 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2012 12:43:42 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 9CA49140CCD for ; Sun, 10 Jun 2012 12:43:42 +0000 (UTC) Date: Sun, 10 Jun 2012 12:43:42 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: <1139020801.1222.1339332222645.JavaMail.jiratomcat@issues-vm> In-Reply-To: <117491365.1183.1339330423988.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Resolved] (LANG-807) RandomStringUtils throws confusing IAE when end <= start 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-807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb resolved LANG-807. ----------------------- Resolution: Fixed Fix Version/s: 2.7 3.2 > RandomStringUtils throws confusing IAE when end <= start > -------------------------------------------------------- > > Key: LANG-807 > URL: https://issues.apache.org/jira/browse/LANG-807 > Project: Commons Lang > Issue Type: Bug > Affects Versions: 2.6, 3.1 > Reporter: Sebb > Assignee: Sebb > Priority: Minor > Fix For: 3.2, 2.7 > > > RandomUtils invokes Random#nextInt(n) where n = end - start. > If end <= start, then Random throws: > java.lang.IllegalArgumentException: n must be positive > This is confusing, and does not identify the source of the problem. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira