title: Java reflecting nested anonymous classes
body: <p>Why does this code return "class java.lang.Object" ?</p>
  
  <pre><code>Object a = new Object() {
    public Object b = new Object(){
      public int c;
    };
  };
  
  System.out.println(a.getClass().getField("b").getType());
  </code></pre>
  
  <p>Why does the inner-inner type get lost? How can I reflect the c field ?</p>
  
  <p>Edit:</p>
  
  <p>This one works (as pointed out in some answers):</p>
  
  <pre><code>a.getClass().getField("b").get(a) ...
  </code></pre>
  
  <p>But then I have to invoke a getter, is there any way to reflect c with only reflection meta data?</p>