Home | History | Annotate | Download | only in 005-cp-top-down
      1 #
      2 # sample small-but-valid classfile
      3 #
      4 
      5 cafe babe  # magic
      6 0000       # minor_version
      7 002e       # major_version
      8 0014       # constant_pool_count
      9 
     10 #
     11 # constant_pool
     12 #
     13 06 41195895 5f8a0903       # 0001: double[415269.3433]
     14 05 12345678 9abcdef0       # 0003: long[0x1234567890abcdef0]
     15 04 42f6e666                # 0005: float[123.45]
     16 03 12345678                # 0006: integer[0x12345678]
     17 08 0013                    # 0007: string["Small"]
     18 0b 0011 000b               # 0008: ifaceMethod[Small.blort:()V]
     19 0a 0011 000b               # 0009: method[Small.blort:()V]
     20 09 0011 000c               # 000a: field[Small.blort:x/y/Zzz]
     21 0c 000f 000d               # 000b: nat[blort:()V]
     22 0c 000f 000e               # 000c: nat[blort:x/y/Zzz]
     23 01 0003 "()V"              # 000d: utf8["()V"]
     24 01 0007 "x/y/Zzz"          # 000e: utf8["x/y/Zzz"]
     25 01 0005 "blort"            # 000f: utf8["blort"]
     26 07 0012                    # 0010: class[java/lang/Object]
     27 07 0013                    # 0011: class[Small]
     28 01 0010 "java/lang/Object" # 0012: utf8["java/lang/Object"]
     29 01 0005 "Small"            # 0013: utf8["Small"]
     30 
     31 0001  # access_flags
     32 0011  # this_class
     33 0010  # super_class
     34 0000  # interfaces_count
     35 0000  # fields_count
     36 0000  # methods_count
     37 
     38 0000  # attributes_count
     39