1 # 2 # sample small-but-valid classfile 3 # 4 5 cafe babe # magic 6 0000 # minor_version 7 002e # major_version 8 0008 # 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 000a "Deprecated" # 0007: utf8["Deprecated"] 20 21 0001 # access_flags 22 0001 # this_class 23 0002 # super_class 24 0000 # interfaces_count 25 0000 # fields_count 26 0001 # methods_count 27 28 # methods[0] 29 0401 # access_flags 30 0005 # name 31 0006 # descriptor 32 0001 # attributes_count 33 # attributes[0] 34 0007 # name 35 00000000 # length 36 37 0000 # attributes_count 38