src/share/classes/com/sun/rowset/CachedRowSetImpl.java
Print this page
@@ -1664,11 +1664,11 @@
* @throws SQLException if the cursor is positioned on the insert
* row
*/
protected void removeCurrentRow() {
((Row)getCurrentRow()).setDeleted();
- rvh.remove(cursorPos);
+ rvh.remove(cursorPos - 1);
--numRows;
}
/**
@@ -6347,11 +6347,10 @@
makeRowOriginal(row);
// this can happen if deleted rows are being shown
if (row.getDeleted() == true) {
removeCurrentRow();
- --numRows;
}
}
/**
* Makes the given row of this rowset the original row by clearing any