title: Java: Subclassing a genericised class
body: <p>I have a genericised class that I wish to subclass as follows:</p>
  
  <pre><code>public class SomeTable&lt;T extends BaseTableEntry&gt;
      extends BaseTable&lt;T&gt;
  {
  
      public SomeTable(int rows, int cols)
      {
          super(rows, cols, SomeTableEntry.class);
          //Does not compile:
          //Cannot find symbol: constructor BaseTable(int, int, java.lang.Class&lt;blah.blah.SomeTableEntry.class&gt;)
      }
  }
  </code></pre>
  
  <p>... where the genericised superclass is:</p>
  
  <pre><code>public class BaseTable&lt;T extends BaseTableEntry&gt;
  {
  
      public BaseTable(int rows, int cols, Class&lt;T&gt; clasz)
      {
          ...
      }
  ...
  }
  </code></pre>
  
  <p>I understand the compiler error, but cannot seem to find a workaround, other than to include an extra parameter in the <code>SomeTable</code> constructor.</p>
  
  <p>Any suggestions?</p>
  
  <p>Thanks!</p>