commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luc Maisonobe (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (MATH-861) Make sure that entries of FieldVectors cannot be null
Date Sun, 07 Apr 2013 09:17:21 GMT

     [ https://issues.apache.org/jira/browse/MATH-861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Luc Maisonobe closed MATH-861.
------------------------------


Closing issue as version 3.2 has been released on 2013-04-06.
                
> Make sure that entries of FieldVectors cannot be null
> -----------------------------------------------------
>
>                 Key: MATH-861
>                 URL: https://issues.apache.org/jira/browse/MATH-861
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: S├ębastien Brisard
>              Labels: exception, field, linear
>             Fix For: 3.2
>
>
> As part of MATH-854, an extensive review of exceptions possibly thrown throughout CM
is being carried out.
> It turns out that in {{FieldVector}}, {{NullArgumentException}}s may occur because {{FieldElement}}
throws such an exception for all elementary operation. In {{FieldVector}}, this has an impact
on
> * operations involving a {{FieldElement}} as an argument, eg {{mapAdd(T d)}} and the
likes: for these method, the throws clause has been altered.
> * operations involving a {{FieldVector}} as an argument, eg {{add(FieldVector<T>
v}}. In order to avoid catching and rethrowing a {{NullArgumentException}}, all implementations
of {{FieldVector}} should make sure that no vector entry can be {{null}}.
> As a consequence
> * the above statement must be added to the class comment of {{FieldVector}}
> * all constructors, setters and the likes must explicitely check for {{null}}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message