Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 80468 invoked from network); 4 Apr 2011 04:55:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Apr 2011 04:55:48 -0000 Received: (qmail 95730 invoked by uid 500); 4 Apr 2011 04:55:46 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 95594 invoked by uid 500); 4 Apr 2011 04:55:46 -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 95586 invoked by uid 99); 4 Apr 2011 04:55:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 04:55:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 04:55:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AD32591110 for ; Mon, 4 Apr 2011 04:55:05 +0000 (UTC) Date: Mon, 4 Apr 2011 04:55:05 +0000 (UTC) From: "Phil Steitz (JIRA)" To: issues@commons.apache.org Message-ID: <720243686.31817.1301892905706.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <972623225.31757.1301890445744.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (MATH-555) MathUtils round method should propagate rather than wrap Runitme exceptions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MATH-555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Phil Steitz resolved MATH-555. ------------------------------ Resolution: Fixed Fixed in trunk in r1088473 > MathUtils round method should propagate rather than wrap Runitme exceptions > --------------------------------------------------------------------------- > > Key: MATH-555 > URL: https://issues.apache.org/jira/browse/MATH-555 > Project: Commons Math > Issue Type: Bug > Affects Versions: 2.0, 2.1, 2.2 > Reporter: Phil Steitz > Priority: Minor > Fix For: 3.0 > > > MathUtils.round(double, int, int) can generate IllegalArgumentException or ArithmeticException. Instead of wrapping these exceptions in MathRuntimeException, the conditions under which these exceptions can be thrown should be documented and the exceptions should be propagated directly to the caller. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira