1 # 2 # sample small-but-valid classfile 3 # 4 5 cafe babe # magic 6 0000 # minor_version 7 002e # major_version 8 000a # constant_pool_count 9 10 # 11 # constant_pool 12 # 13 0a 0003 0007 # 0001: method[0003, 0007] 14 07 0008 # 0002: class[0008] 15 07 0009 # 0003: class[0009] 16 01 0006 "<init>" # 0004: utf8["<init>"] 17 01 0003 "()V" # 0005: utf8["()V"] 18 01 0004 "Code" # 0006: utf8["Code"] 19 0c 0004 0005 # 0007: nat[0004, 0005] 20 01 0005 "Small" # 0008: utf8["Small"] 21 01 0010 "java/lang/Object" # 0009: utf8["java/lang/Object"] 22 23 0021 # access_flags 24 0002 # this_class 25 0003 # super_class 26 0000 # interfaces_count 27 0000 # fields_count 28 0001 # methods_count 29 30 # 31 # methods[0] 32 # 33 0001 # access_flags 34 0004 # name 35 0005 # descriptor 36 0001 # attributes_count 37 # attributes[0] 38 0006 # name 39 0000 0011 # length 40 0001 # max_stack 41 0001 # max_locals 42 0000 0005 # code_length 43 2a # 0000: aload_0 44 b7 0001 # 0001: invokespecial method[java/lang/Object.<init>:()V] 45 b1 # 0004: return 46 0000 # exception_table_length 47 0000 # attributes_count 48 49 0000 # attributes_count 50