7166598: FilteredRowSetImpl can result in Invalid Cursor Position
Reviewed-by: lancea
Contributed-by: Knut Anders Hatlen <knut.hatlen@oracle.com>
--- a/jdk/src/share/classes/com/sun/rowset/FilteredRowSetImpl.java Wed May 02 21:46:31 2012 +0100
+++ b/jdk/src/share/classes/com/sun/rowset/FilteredRowSetImpl.java Fri May 04 16:00:47 2012 -0400
@@ -128,7 +128,7 @@
for(int rows=this.getRow(); rows<=this.size();rows++) {
bool = super.internalNext();
- if( p == null) {
+ if( !bool || p == null) {
return bool;
}
if(p.evaluate(this)){