Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-257

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              luc Luc Maisonobe
              Reporter:
              sebb@apache.org Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: