Skip to content

Instantly share code, notes, and snippets.

@archie
Created March 26, 2014 21:49
Show Gist options
  • Select an option

  • Save archie/9794416 to your computer and use it in GitHub Desktop.

Select an option

Save archie/9794416 to your computer and use it in GitHub Desktop.

Revisions

  1. archie created this gist Mar 26, 2014.
    16 changes: 16 additions & 0 deletions bytecode wildcards
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    public void process3(java.util.List<?>);
    Code:
    0: aload_1
    1: invokeinterface #2, 1 // InterfaceMethod java/util/List.iterator:()Ljava/util/Iterator;
    6: astore_2
    7: aload_2
    8: invokeinterface #3, 1 // InterfaceMethod java/util/Iterator.hasNext:()Z
    13: ifeq 31
    16: aload_2
    17: invokeinterface #4, 1 // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
    22: astore_3
    23: aload_3
    24: invokevirtual #5 // Method java/lang/Object.toString:()Ljava/lang/String;
    27: pop
    28: goto 7
    31: return