--- old/src/share/classes/com/sun/rowset/CachedRowSetImpl.java 2011-04-28 14:04:49.000000000 -0400 +++ new/src/share/classes/com/sun/rowset/CachedRowSetImpl.java 2011-04-28 14:04:49.000000000 -0400 @@ -1666,7 +1666,7 @@ */ protected void removeCurrentRow() { ((Row)getCurrentRow()).setDeleted(); - rvh.remove(cursorPos); + rvh.remove(cursorPos - 1); --numRows; } @@ -6349,7 +6349,6 @@ // this can happen if deleted rows are being shown if (row.getDeleted() == true) { removeCurrentRow(); - --numRows; } }