title: How can I instantiate a Java generic with JNI?
body: <p>If I want to instantiate a <code>Date</code>, I can use:</p>
  
  <pre><code>jclass cls = (*env)-&gt;FindClass(env, "java/util/Date");
  jmethodID ctr = (*env)-&gt;GetMethodID(env, cls, "&lt;init&gt;", "()V");
  jobject obj = (*env)-&gt;NewObject(env, cls, ctr);
  </code></pre>
  
  <p>But how do I instantiate an <code>ArrayList&lt;String&gt;</code>?</p>