]> source.dussan.org Git - vaadin-framework.git/commitdiff
Support generics when decoding Set (#8879)
authorLeif Åstrand <leif@vaadin.com>
Mon, 11 Jun 2012 07:55:46 +0000 (10:55 +0300)
committerLeif Åstrand <leif@vaadin.com>
Mon, 11 Jun 2012 07:55:46 +0000 (10:55 +0300)
src/com/vaadin/terminal/gwt/server/JsonCodec.java

index aa61c68338f00229727867a623eb07c62c41e642..fb2d289484c71aee62a9762efee685fd6037cfad 100644 (file)
@@ -400,7 +400,7 @@ public class JsonCodec implements Serializable {
             boolean restrictToInternalTypes, JSONArray jsonArray,
             Application application) throws JSONException {
         HashSet<Object> set = new HashSet<Object>();
-        set.addAll(decodeList(List.class, restrictToInternalTypes, jsonArray,
+        set.addAll(decodeList(targetType, restrictToInternalTypes, jsonArray,
                 application));
         return set;
     }