]> source.dussan.org Git - gwtquery.git/commitdiff
Return the String representation of the object like client sidei does 52/1952/1 mcm_fixes origin/pr/268
authorManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>
Sun, 9 Feb 2014 16:21:41 +0000 (17:21 +0100)
committerManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>
Sun, 9 Feb 2014 16:21:41 +0000 (17:21 +0100)
gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java

index ee9c4d22dd46f650074a787236920add875bee92..76deabb2db94e89dcca0506cde305365c252d259 100644 (file)
@@ -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);