title: Conversion error on derivated Factory using Class<T>
body: <p>The folowing miminal example resuts in an error "<code>Collection</code> cannot be converted to <code>LinkedList</code>" on Android Studio:</p>
  
  <pre><code>class Factory&lt;F extends Factory&lt;F&gt;&gt; {
  
     public &lt;T extends Collection&lt;?&gt;&gt; T empty(Class&lt;T&gt; clazz) {
         try {
             return clazz.newInstance();
         } catch (Exception e) {
             throw new Error(e);
         }
     }
  
  }
  
  class MyFactory extends Factory {
  
     // ERROR is displayed here
     LinkedList&lt;?&gt; list = empty(LinkedList.class);  
  
  }
  </code></pre>
  
  <p>I tried to remove that error but could not figure out what is the problem. The construct <code>T create(Class&lt;T&gt; clazz)</code> should be valid and worked for me many times. So conversion should not be the problem and the error was not helpful at all.</p>