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 2011/03/23 21:25:06 UTC

[jira] [Closed] (MATH-424) MultiDimensionMismatchException.getWrongDimensions() fails to clone the array

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

Luc Maisonobe closed MATH-424.
------------------------------


Closing issue as it was included in version 2.2, which has been released

> MultiDimensionMismatchException.getWrongDimensions() fails to clone the array
> -----------------------------------------------------------------------------
>
>                 Key: MATH-424
>                 URL: https://issues.apache.org/jira/browse/MATH-424
>             Project: Commons Math
>          Issue Type: Bug
>            Reporter: Sebb
>            Assignee: Gilles
>
> MultiDimensionMismatchException.getWrongDimensions() returns a pointer to the array, which allows callers to modify it.
> The constructor takes care to clone the input array, so presumably the getter should do so too?
> Same applies to getExpectedDimensions()

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira