7166598: FilteredRowSetImpl can result in Invalid Cursor Position
authorlancea
Fri, 04 May 2012 16:00:47 -0400
changeset 12670 6cf9bd9a9302
parent 12669 e86217580e18
child 12671 729f78ba3a10
7166598: FilteredRowSetImpl can result in Invalid Cursor Position Reviewed-by: lancea Contributed-by: Knut Anders Hatlen <knut.hatlen@oracle.com>
jdk/src/share/classes/com/sun/rowset/FilteredRowSetImpl.java
--- 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)){