8066188: BaseRowSet default value for escape processing is not correct
authorlancea
Sat, 29 Nov 2014 11:14:20 -0500
changeset 27776 b2ddbbc58706
parent 27775 4ee8b208017c
child 27777 54a6546547d0
8066188: BaseRowSet default value for escape processing is not correct Reviewed-by: alanb
jdk/src/java.sql.rowset/share/classes/javax/sql/rowset/BaseRowSet.java
jdk/test/javax/sql/testng/test/rowset/BaseRowSetTests.java
--- 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());
     }
 
     /*