commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Yannakopoulos (JIRA)" <j...@apache.org>
Subject [jira] Commented: (MATH-458) Interpolators: Remove "MathException" from the signature of the "interpolate" method
Date Tue, 04 Jan 2011 14:47:48 GMT

    [ https://issues.apache.org/jira/browse/MATH-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977292#action_12977292
] 

Michael Yannakopoulos commented on MATH-458:
--------------------------------------------

Excuse me, but why interfaces for the interpolators shoudn't contain a "throws" clause? The
appropriate unchecked exceptions are shown by the stack trace... Sorry for not understanding
what would you like to be done... 

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


Mime
View raw message