7040150: Indexing Error in CachedRowSetImpl.removeCurrentRow

Reviewed-by: smarks
This commit is contained in:
Lance Andersen 2011-04-29 09:04:03 -04:00
parent df7a03a4c3
commit 4e98f838c8

View File

@ -1666,7 +1666,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
*/
protected void removeCurrentRow() {
((Row)getCurrentRow()).setDeleted();
rvh.remove(cursorPos);
rvh.remove(cursorPos - 1);
--numRows;
}
@ -6349,7 +6349,6 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
// this can happen if deleted rows are being shown
if (row.getDeleted() == true) {
removeCurrentRow();
--numRows;
}
}