jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java
changeset 11683 5e02efd89af6
parent 11129 f9ad1aadf3fa
child 13012 c4ef809d7fca
--- a/jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java	Thu Jan 26 09:51:35 2012 +0100
+++ b/jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java	Thu Jan 26 19:41:35 2012 -0500
@@ -6431,7 +6431,8 @@
      * @see #setKeyColumns
      */
     public int[] getKeyColumns() throws SQLException {
-        return keyCols;
+        int[]keyColumns  = this.keyCols;
+        return (keyColumns == null) ? null : Arrays.copyOf(keyColumns, keyColumns.length);
     }