Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 42555 invoked from network); 5 Jan 2011 16:51:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jan 2011 16:51:12 -0000 Received: (qmail 47364 invoked by uid 500); 5 Jan 2011 16:51:12 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 47052 invoked by uid 500); 5 Jan 2011 16:51:10 -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 47043 invoked by uid 99); 5 Jan 2011 16:51:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jan 2011 16:51:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jan 2011 16:51:09 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p05Gomtj000092 for ; Wed, 5 Jan 2011 16:50:48 GMT Message-ID: <9727377.163351294246248491.JavaMail.jira@thor> Date: Wed, 5 Jan 2011 11:50:48 -0500 (EST) From: "Michael Yannakopoulos (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (MATH-458) Interpolators: Remove "MathException" from the signature of the "interpolate" method In-Reply-To: <3033725.41271291919881783.JavaMail.jira@thor> 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/MATH-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977834#action_12977834 ] Michael Yannakopoulos commented on MATH-458: -------------------------------------------- So if we just changed the "throws MathException" statement with "throws MathRuntimeException" statement then the new implementation would be compatible with the new standards? Thanks in advance Gilles! > Interpolators: Remove "MathException" from the signature of the "interpolate" method > ------------------------------------------------------------------------------------ > > Key: MATH-458 > URL: https://issues.apache.org/jira/browse/MATH-458 > Project: Commons Math > Issue Type: Bug > Reporter: Gilles > Assignee: Gilles > Priority: Minor > Fix For: 3.0 > > > The interfaces for the interpolators contain a "throws" clause that should be removed. > E.g. > {code} > public interface UnivariateRealInterpolator { > /** > * Computes an interpolating function for the data set. > * @param xval the arguments for the interpolation points > * @param yval the values for the interpolation points > * @return a function which interpolates the data set > * @throws MathException if arguments violate assumptions made by the > * interpolation algorithm > */ > UnivariateRealFunction interpolate(double xval[], double yval[]) > throws MathException; > } > {code} > Assumptions violation should be dealt with by throwing appropriate unchecked exceptions. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.