Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Using Javap on <code>InnerClassTest2$Inner1</code> gives </p> <pre><code>Compiled from "InnerClassTest2.java" public class org.benf.cfr.tests.InnerClassTest2$Inner1&lt;E&gt; { final org.benf.cfr.tests.InnerClassTest2 this$0; public org.benf.cfr.tests.InnerClassTest2$Inner1(java.util.List&lt;E&gt;); public int getX(int); } </code></pre> <p>Disassembling with Krakatau gives</p> <pre><code>.version 51 0 .source InnerClassTest2.java .class super public org/benf/cfr/tests/InnerClassTest2$Inner1 .super java/lang/Object .field final private arg Ljava/util/List; .field synthetic final this$0 Lorg/benf/cfr/tests/InnerClassTest2; .method public &lt;init&gt; : [_13] .limit stack 2 .limit locals 3 aload_0 aload_1 putfield org/benf/cfr/tests/InnerClassTest2$Inner1 this$0 Lorg/benf/cfr/tests/InnerClassTest2; aload_0 invokespecial java/lang/Object &lt;init&gt; ()V aload_0 aload_2 putfield org/benf/cfr/tests/InnerClassTest2$Inner1 arg Ljava/util/List; return .end method .method public getX : (I)I .limit stack 1 .limit locals 2 iconst_2 ireturn .end method .const [_13] = Utf8 (Lorg/benf/cfr/tests/InnerClassTest2;Ljava/util/List;)V </code></pre> <p>As you can see, the Krakatau output shows that the descriptor is actually correct, but for some reason Javap isn't displaying it. One thing about Javap is that it tries to arrange the output so it looks more like Java. Perhaps this is a new feature introduced in JDK7 that tries to make disassembled generics look more like Java by hiding the compiler added parameters. Unfortunately this makes Javap (even more) useless for seeing what's really there. </p> <p>Interesting catch!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload