1 # 2 # sample small-but-valid classfile 3 # 4 5 cafe babe # magic 6 0000 # minor_version 7 002e # major_version 8 0009 # constant_pool_count 9 10 # 11 # constant_pool 12 # 13 07 0003 # 0001: class[Small] 14 07 0004 # 0002: class[java/lang/Object] 15 01 0005 "Small" # 0003: utf8["Small"] 16 01 0010 "java/lang/Object" # 0004: utf8["java/lang/Object"] 17 01 0005 "blort" # 0005: utf8["blort"] 18 01 0003 "()V" # 0006: utf8["()V"] 19 01 0009 "Signature" # 0007: utf8["Signature"] 20 01 0004 "LYo;" # 0008: utf8["Yo"] 21 22 0001 # access_flags 23 0001 # this_class 24 0002 # super_class 25 0000 # interfaces_count 26 0000 # fields_count 27 0001 # methods_count 28 29 # methods[0] 30 0401 # access_flags 31 0005 # name 32 0006 # descriptor 33 0001 # attributes_count 34 # attributes[0] 35 0007 # name 36 00000002 # length 37 0008 # signature 38 39 0000 # attributes_count 40