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

Inconsistencies in the Exception hierarchy

Rank to TopRank to BottomVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1, 1.2, 2.0
    • Fix Version/s: 3.0
    • Labels:
      None

      Description

      I think there are some inconsistencies in the hierarchy of exceptions used by the Commons Math library which could easily be fixed:

      • org.apache.commons.math.linear.MatrixIndexException should really be a subclass of
        java.lang.IndexOutOfBoundsException.
      • Either org.apache.commons.math.linear.InvalidMatrixException should be checked or
        org.apache.commons.math.random.NotPositiveDefiniteMatrixException and
        org.apache.commons.math.geometry.NotARotationMatrixException should be unchecked, but in any case the latter two
        should be subclasses of the former. An unchecked InvalidMatrixException should probably be a subclass of
        java.lang.ArithmeticException while a checked InvalidMatrixException should be a subclass of
        org.apache.commons.math.MathException.

        Attachments

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              erans Gilles Sadowski
              Reporter:
              murphy Thomas Chust

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Issue deployment