diff options
author | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2014-02-09 17:21:41 +0100 |
---|---|---|
committer | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2014-02-09 17:21:41 +0100 |
commit | 47a3b175d76558dd72d178bc28b1d5f5e3943691 (patch) | |
tree | e951f1e05f5fcf37c31d2db0fe97f468ae5b6f3c | |
parent | f67b7578fa54ffdd810693011ea942b140aa44b4 (diff) | |
download | gwtquery-mcm_fixes.tar.gz gwtquery-mcm_fixes.zip |
Return the String representation of the object like client sidei doesmcm_fixes
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java b/gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java index ee9c4d22..76deabb2 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java @@ -67,7 +67,7 @@ public class JsonFactoryJre implements JsonFactory { } else if (clz.equals(Date.class)) { ret = new Date(obj != null ? obj.getLong(attr): arr.getLong(idx)); } else if (clz.equals(String.class)) { - ret = obj != null ? obj.getString(attr) : arr.getString(idx); + ret = String.valueOf(obj != null ? obj.get(attr) : arr.get(idx)); } else if (clz.equals(Boolean.class) || clz.isPrimitive() && clz == Boolean.TYPE) { try { ret = obj != null ? obj.getBoolean(attr): arr.getBoolean(idx); |