title: How can I get the Array field of a class with reflection?
body: <p>My class A has</p>
  
  <pre><code>   AClaz[] rofl;
  </code></pre>
  
  <p>The documentation for getDeclaredFields says "This method returns an array of length 0 if the class or interface declares no fields, or if this Class object represents a primitive type, <strong>an array class,</strong> or void. " </p>
  
  <p>I want to access the rofl array of type AClaz using reflection. Even if the AClaz is an inner class of class A.</p>
  
  <p>So I would do getDeclaredClass ?</p>