From 947669f5df03f24604964e9b09fb1b3c9ef39dd2 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 12 Apr 2012 19:13:12 +0300 Subject: [PATCH] Scan parametrized types, e.g. List when generating serializers --- .../gwt/widgetsetutils/SerializerMapGenerator.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } -- 2.39.5