You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Luc Maisonobe (JIRA)" <ji...@apache.org> on 2013/04/07 11:17:21 UTC

[jira] [Closed] (MATH-861) Make sure that entries of FieldVectors cannot be null

     [ 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