title: java generics compilation error
body: <p>I've the following generic class:</p>
  
  <pre><code>public class GenericClass&lt;E,T extends Comparable&lt;T&gt;&gt;
  {
      public static &lt;E, T extends Comparable&lt;T&gt;&gt; GenericClass&lt;E, T&gt; create()
      {
          return new GenericClass&lt;E, T&gt;();
      }
  
      private GenericClass()
      {
      }
  }
  </code></pre>
  
  <p>And this is how I simply use it:</p>
  
  <pre><code>GenericClass&lt;MyClass, Double&gt; set = GenericClass.create();
  </code></pre>
  
  <p>Eclipse compilation shows no errors, however - building with ant provides the following error:</p>
  
  <pre><code>MyClass.java:19: incompatible types; no instance(s) of type variable(s) E,T exist so that GenericClass&lt;E,T&gt; conforms to GenericClass&lt;MyClass,java.lang.Double&gt;
  [javac] found   : &lt;E,T&gt;GenericClass&lt;E,T&gt;
  [javac] required: GenericClass&lt;MyClass,java.lang.Double&gt;
  [javac]             GenericClass&lt;MyClass, Double&gt; set = GenericClass.create();
  </code></pre>
  
  <p>Thanks!</p>