8066188: BaseRowSet default value for escape processing is not correct
Reviewed-by: alanb
--- a/jdk/src/java.sql.rowset/share/classes/javax/sql/rowset/BaseRowSet.java Fri Nov 28 14:58:10 2014 +0000
+++ b/jdk/src/java.sql.rowset/share/classes/javax/sql/rowset/BaseRowSet.java Sat Nov 29 11:14:20 2014 -0500
@@ -462,7 +462,7 @@
* <code>false</code> that it is not. The default is <code>true</code>.
* @serial
*/
- private boolean escapeProcessing;
+ private boolean escapeProcessing = true;
/**
* A constant indicating the isolation level of the connection
--- a/jdk/test/javax/sql/testng/test/rowset/BaseRowSetTests.java Fri Nov 28 14:58:10 2014 +0000
+++ b/jdk/test/javax/sql/testng/test/rowset/BaseRowSetTests.java Sat Nov 29 11:14:20 2014 -0500
@@ -186,11 +186,11 @@
}
/*
- * Validate that getEscapeProcessing() returns false by default
+ * Validate that getEscapeProcessing() returns true by default
*/
@Test
public void test08() throws Exception {
- assertFalse(brs.getEscapeProcessing());
+ assertTrue(brs.getEscapeProcessing());
}
/*