Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B1138DF4F for ; Fri, 14 Sep 2012 06:55:15 +0000 (UTC) Received: (qmail 7715 invoked by uid 500); 14 Sep 2012 06:55:15 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 7464 invoked by uid 500); 14 Sep 2012 06:55:12 -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 7340 invoked by uid 99); 14 Sep 2012 06:55:10 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Sep 2012 06:55:10 +0000 Date: Fri, 14 Sep 2012 17:55:10 +1100 (NCT) From: =?utf-8?Q?S=C3=A9bastien_Brisard_=28JIRA=29?= To: issues@commons.apache.org Message-ID: <598649729.79172.1347605710569.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (MATH-861) Make sure that entries of FieldVectors cannot be null MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 S=C3=A9bastien Brisard created MATH-861: -------------------------------------- Summary: 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=C3=A9bastien Brisard Fix For: 3.2 As part of MATH-854, an extensive review of exceptions possibly thrown thro= ughout CM is being carried out. It turns out that in {{FieldVector}}, {{NullArgumentException}}s may occur = because {{FieldElement}} throws such an exception for all elementary operat= ion. 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(FieldVect= or v}}. In order to avoid catching and rethrowing a {{NullArgumentExcept= ion}}, all implementations of {{FieldVector}} should make sure that no vect= or 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 administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira