jdk/src/share/classes/com/sun/rowset/internal/BaseRow.java
changeset 11683 5e02efd89af6
parent 5506 202f599c92aa
child 21645 1276aab8ff2f
--- a/jdk/src/share/classes/com/sun/rowset/internal/BaseRow.java	Thu Jan 26 09:51:35 2012 +0100
+++ b/jdk/src/share/classes/com/sun/rowset/internal/BaseRow.java	Thu Jan 26 19:41:35 2012 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -27,6 +27,7 @@
 
 import java.sql.*;
 import java.io.*;
+import java.util.Arrays;
 
 /**
  * The abstract base class from which the classes <code>Row</code>
@@ -65,7 +66,8 @@
  * original values
  */
     public Object[] getOrigRow() {
-        return origVals;
+        Object[] origRow = this.origVals;
+        return (origRow == null) ? null: Arrays.copyOf(origRow, origRow.length);
     }
 
 /**