title: JAXB and collections containing generics
body: <p>We have the JAXB/Java code below.  This worked fine until we changed <code>List&lt;JQGridTO&gt; rows</code> to <code>List&lt;? extends JQGridTO&gt; rows</code>.  </p>
  
  <p>When we made that change we get this error:</p>
  
  <blockquote>
    <p>Constructor threw exception; nested
    exception is com.sun.
    xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of
    IllegalAnnotationExceptions Property
    rows appears in @XmlType.propOrder,
    but no such property exists. Maybe you
    meant records?
            this problem is related to the following location:
                    at com.me.ui.service.JQGridJsonRoot</p>
  </blockquote>
  
  <p>Why do we get this error?  Can't you use Generics as we did (ie: specifing <code>? extends XXX</code>)?</p>
  
  <pre><code>@XmlRootElement
  @XmlType(name = "", propOrder = {
          "records",
          "page",
          "total",
          "rows"
  })
  public class JQGridJsonRoot {
      int total; //total pages for the query
      int page; //current page of the query
      int records; //total number of records for the query
      List&lt;? extends JQGridTO&gt; rows
      ...
  </code></pre>