summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-06-08 11:49:59 +0300
committerLeif Åstrand <leif@vaadin.com>2012-06-08 11:49:59 +0300
commitd9ab5f094776f0672a2cda1512417c42ba75430e (patch)
treed222570bdd42ffc8f5ab388bc1e5a7d30cc8cbd4 /src
parent107dffc5cbf8df34450cd9e49d19abd6dc7f4634 (diff)
downloadvaadin-framework-d9ab5f094776f0672a2cda1512417c42ba75430e.tar.gz
vaadin-framework-d9ab5f094776f0672a2cda1512417c42ba75430e.zip
Don't expect type info for Lists, Sets and Arrays (#8879)
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/server/JsonCodec.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/JsonCodec.java b/src/com/vaadin/terminal/gwt/server/JsonCodec.java
index f4892bd905..aa61c68338 100644
--- a/src/com/vaadin/terminal/gwt/server/JsonCodec.java
+++ b/src/com/vaadin/terminal/gwt/server/JsonCodec.java
@@ -388,10 +388,9 @@ public class JsonCodec implements Serializable {
List<Object> list = new ArrayList<Object>();
for (int i = 0; i < jsonArray.length(); ++i) {
// each entry always has two elements: type and value
- JSONArray encodedValueAndType = jsonArray.getJSONArray(i);
+ Object encodedValue = jsonArray.get(i);
Object decodedChild = decodeParametrizedType(targetType,
- restrictToInternalTypes, 0, encodedValueAndType,
- application);
+ restrictToInternalTypes, 0, encodedValue, application);
list.add(decodedChild);
}
return list;