changeset 13012:c4ef809d7fca

7171917: CachedRowSetImpl.populate does not handle map properly Reviewed-by: joehw
author lancea
date Mon, 11 Jun 2012 07:10:48 -0400
parents a3a06390f67b
children 87829cbb7fbe e2fe1611bb04 72a4386f8976
files jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java	Sun Jun 10 10:29:27 2012 +0100
+++ b/jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java	Mon Jun 11 07:10:48 2012 -0400
@@ -659,7 +659,7 @@
                  * us work with drivers that do not support
                  * getObject with a map in fairly sensible way
                  */
-                if (map == null) {
+                if (map == null || map.isEmpty()) {
                     obj = data.getObject(i);
                 } else {
                     obj = data.getObject(i, map);