/** * */ package testsuite.simple; import java.sql.ResultSet; import testsuite.BaseTestCase; /** * @author Tonci * */ public class TestBug35170 extends BaseTestCase { /** * @param name */ public TestBug35170(String name) { super(name); // TODO Auto-generated constructor stub } public void testBug35170() throws Exception { System.out.println("java.vm.version : " + System.getProperty("java.vm.version")); System.out.println("java.vm.vendor : " + System.getProperty("java.vm.vendor")); System.out.println("java.runtime.version : " + System.getProperty("java.runtime.version")); System.out.println("os.name : " + System.getProperty("os.name")); System.out.println("os.version : " + System.getProperty("os.version ")); System.out.println("sun.management.compiler : " + System.getProperty("sun.management.compiler")); try { this.stmt = this.conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); this.stmt.setFetchSize(Integer.MIN_VALUE); this.rs = this.stmt.executeQuery("select * from mysql.user"); while(this.rs.next()); assertFalse("Error, after last", this.rs.isAfterLast()); //System.out.print(this.rs.isLast()); << however, this should fail for streaming RS... } finally { closeMemberJDBCResources(); } } /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub junit.textui.TestRunner.run(TestBug35170.class); } }