Issue Details (XML | Word | Printable)

Key: MATH-257
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Luc Maisonobe
Reporter: Sebb
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Math

FastFourierTransformer.MultiDimensionalComplexMatrix.get() not consistent with FastFourierTransformer.MultiDimensionalComplexMatrix.set()

Created: 05/Apr/09 05:35 PM   Updated: 23/Apr/09 02:26 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 05/Apr/09 06:43 PM


 Description  « Hide
FastFourierTransformer.MultiDimensionalComplexMatrix.get() is not consistent with FastFourierTransformer.MultiDimensionalComplexMatrix.set().

The set() method does not allow a null parameter to get past the first check.

The get() method allows a null parameter provided dimensionSize.length <= 1.

This seems wrong, both because it is inconsistent and because it may allow an NPE later if dimensionSize.length == 1



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Luc Maisonobe added a comment - 05/Apr/09 06:43 PM
fixed in subversion repository as of r762131.
I took the opportunity to also simplify the initialization of the dimensionSize array, using a two passes algorithm.
The inconsistency by itself was removed by having bot set and get be no-op for null vectors

Luc Maisonobe made changes - 05/Apr/09 06:43 PM
Field Original Value New Value
Resolution Fixed [ 1 ]
Assignee Luc Maisonobe [ luc ]
Status Open [ 1 ] Resolved [ 5 ]
Henri Yandell made changes - 23/Apr/09 02:26 AM
Status Resolved [ 5 ] Closed [ 6 ]