title: inference variable T has incompatible bounds Error
body: <pre><code>ArrayList&lt;ShipDetail&gt; detailArray = new ArrayList&lt;ShipDetail&gt;(Arrays.asList(shipDetail));
  Sorter.QuickSort( detailArray );
  </code></pre>
  
  <p>And this is my Sorter class in which I was trying to do Implement some algorithms.</p>
  
  <pre><code>public class Sorter
  {
     public static&lt;T extends Comparable&lt;T&gt;&gt; void QuickSort(AbstractList&lt;T&gt; collection )
     {
          quickSort(collection,0,collection.size()-1);
     }
  
  }
  </code></pre>
  
  <p>But while compiling i am getting the following error :</p>
  
  <p>required: AbstractList
    found: ArrayList
    reason: inference variable T has incompatible bounds
      equality constraints: ShipDetail
      upper bounds: Comparable
    where T is a type-variable:
      T extends Comparable declared in method QuickSort(AbstractList)</p>