title: Java type parameterized Class argument
body: <p>JPA has a method of the following signature:</p>
  
  <pre><code>&lt;T&gt; CriteriaQuery&lt;T&gt; createQuery(Class&lt;T&gt; resultClass);
  </code></pre>
  
  <p>How do I invoke this method when my <code>resultClass</code> type is, itself, type parameterized?</p>
  
  <p>For example:</p>
  
  <pre><code>public class ResultDto&lt;T&gt; {
  ...
  }
  </code></pre>
  
  <p>I tried the following but it didn't work:</p>
  
  <pre><code>createQuery(ResultDto&lt;String&gt;.class);
  </code></pre>