diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-06-08 11:49:59 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-06-08 11:49:59 +0300 |
commit | d9ab5f094776f0672a2cda1512417c42ba75430e (patch) | |
tree | d222570bdd42ffc8f5ab388bc1e5a7d30cc8cbd4 /src | |
parent | 107dffc5cbf8df34450cd9e49d19abd6dc7f4634 (diff) | |
download | vaadin-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.java | 5 |
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; |