You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Randy Strauss (Jira)" <ji...@apache.org> on 2020/12/11 06:36:00 UTC

[jira] [Created] (MATH-1565) MatrixUtils.checkColumnIndex() uses COLUMN_INDEX instead of COLUMN_INDEX_OUT_OF_RANGE

Randy Strauss created MATH-1565:
-----------------------------------

             Summary: MatrixUtils.checkColumnIndex() uses COLUMN_INDEX instead of COLUMN_INDEX_OUT_OF_RANGE
                 Key: MATH-1565
                 URL: https://issues.apache.org/jira/browse/MATH-1565
             Project: Commons Math
          Issue Type: Bug
    Affects Versions: 3.6.1
            Reporter: Randy Strauss


MatrixUtils.checkColumnIndex() uses COLUMN_INDEX instead of COLUMN_INDEX_OUT_OF_RANGE
similarly for checkRowIndex

Note that testing could run a script that searches the code for all the LocalizedFormats, and complains if any of them are not used.  In this case, it would have caught this error.

Another test that would have caught it is parsing the code and checking that the number of arguments matches the number of percent signs.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)