From: Artur Signell Date: Thu, 12 Apr 2012 16:13:12 +0000 (+0300) Subject: Scan parametrized types, e.g. List when generating serializers X-Git-Tag: 7.0.0.alpha2~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=947669f5df03f24604964e9b09fb1b3c9ef39dd2;p=vaadin-framework.git Scan parametrized types, e.g. List when generating serializers --- diff --git a/src/com/vaadin/terminal/gwt/widgetsetutils/SerializerMapGenerator.java b/src/com/vaadin/terminal/gwt/widgetsetutils/SerializerMapGenerator.java index 21d081f0a5..e09545962b 100644 --- a/src/com/vaadin/terminal/gwt/widgetsetutils/SerializerMapGenerator.java +++ b/src/com/vaadin/terminal/gwt/widgetsetutils/SerializerMapGenerator.java @@ -18,6 +18,7 @@ import com.google.gwt.core.ext.TreeLogger.Type; import com.google.gwt.core.ext.UnableToCompleteException; import com.google.gwt.core.ext.typeinfo.JClassType; import com.google.gwt.core.ext.typeinfo.JMethod; +import com.google.gwt.core.ext.typeinfo.JParameterizedType; import com.google.gwt.core.ext.typeinfo.JType; import com.google.gwt.core.ext.typeinfo.TypeOracle; import com.google.gwt.json.client.JSONObject; @@ -221,6 +222,13 @@ public class SerializerMapGenerator extends Generator { if (serializableTypes.contains(type)) { return; } + JParameterizedType parametrized = type.isParameterized(); + if (parametrized != null) { + for (JClassType parameterType : parametrized.getTypeArgs()) { + addTypeIfNeeded(serializableTypes, parameterType); + } + } + if (serializationHandledByFramework(type)) { return; }