Index: src/java/org/apache/commons/math/linear/AbstractRealMatrix.java =================================================================== --- src/java/org/apache/commons/math/linear/AbstractRealMatrix.java (revision 726076) +++ src/java/org/apache/commons/math/linear/AbstractRealMatrix.java (working copy) @@ -767,7 +767,9 @@ final int nRows = getRowDimension(); final int nCols = getColumnDimension(); final StringBuffer res = new StringBuffer(); - res.append("RealMatrixImpl{"); + String fullClassName = getClass().getName(); + String shortClassName = fullClassName.substring(fullClassName.lastIndexOf('.') + 1); + res.append(shortClassName).append("{"); for (int i = 0; i < nRows; ++i) { if (i > 0) { @@ -844,7 +846,7 @@ * @param row row index to check * @exception MatrixIndexException if index is not valid */ - private void checkRowIndex(final int row) { + protected void checkRowIndex(final int row) { if (row < 0 || row >= getRowDimension()) { throw new MatrixIndexException("row index {0} out of allowed range [{1}, {2}]", new Object[] { row, 0, getRowDimension() - 1}); @@ -856,7 +858,7 @@ * @param column column index to check * @exception MatrixIndexException if index is not valid */ - private void checkColumnIndex(final int column) + protected void checkColumnIndex(final int column) throws MatrixIndexException { if (column < 0 || column >= getColumnDimension()) { throw new MatrixIndexException("column index {0} out of allowed range [{1}, {2}]",