title: Serialization of generic types - GWT
body: <p>I have an interface like this </p>
  
  <pre><code>public interface IField&lt;T&gt; extends IsSerializable {
  public  String getKey();
  public void setKey(String name);
  public T getValue();
  public void setValue(T role); }
  </code></pre>
  
  <p>And a class like this </p>
  
  <pre><code>public class FieldImpl&lt;T&gt; implements IField&lt;T&gt; {
  private String key;
  public String getKey() {
      return key;
  }
  public void setKey(String key) {
      this.key = key;
  }
  public T getValue() {
      return value;
  }
  public void setValue(T value) {
      this.value = value;
  }
  private T value;
  
  public FieldImpl() {
  }
  
  public FieldImpl(String key, T value) {
  super();
  this.key = key;
  this.value = value;
  } }
  </code></pre>
  
  <p>When I try to compile I'm getting </p>
  
  <pre><code>[ERROR] In order to produce smaller client-side code, 'Object' is not allowed; please use a more specific type (reached via server.sdk.model.IField)
  </code></pre>
  
  <p>What is the cause for this? Is there any place I can read about GWT's generics support?</p>