title: How to create a Class of primitive array?
body: <p>This question is derived from: <a href="https://stackoverflow.com/questions/5070519">How to get this Method object via reflection?</a></p>
  
  <p>I'm trying to do the following:</p>
  
  <pre><code>Class c1 = Class.forName("[Ljava.lang.Integer;"); // works fine
  Class c1 = Class.forName("[Lint;"); // doesn't work, since it's primitive
  </code></pre>
  
  <p>What is the workaround? <code>int[].class</code> is the only solution?</p>