title: Java Generics: set List of superclass using List of subclass
body: <p>If I have a method in <code>MyClass</code> such as </p>
  
  <pre><code>setSuperClassList(List&lt;Superclass&gt;)
  </code></pre>
  
  <p>...should I be able to do this:</p>
  
  <pre><code>new MyClass().setSuperClassList(new ArrayList&lt;Subclass&gt;())
  </code></pre>
  
  <p>It appears this won't compile.  Why?</p>