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 0004 "Code" # 0007: utf8["Code"] 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 0001 # access_flags 30 0005 # name 31 0006 # descriptor 32 0001 # attributes_count 33 # attributes[0] 34 0007 # name 35 0000000d # length 36 0001 # max_stack 37 0001 # max_locals 38 00000001 # code_length 39 b1 # 0000: return 40 0000 # exception_table_length 41 0000 # attributes_count 42 43 0000 # attributes_count 44