1#
2# sample small-but-valid classfile
3#
4
5cafe babe  # magic
60000       # minor_version
7002e       # major_version
8000d       # constant_pool_count
9
10#
11# constant_pool
12#
1307 0003                      # 0001: class[Small]
1407 0004                      # 0002: class[java/lang/Object]
1501 0005 "Small"              # 0003: utf8["Small"]
1601 0010 "java/lang/Object"   # 0004: utf8["java/lang/Object"]
1701 0005 "blort"              # 0005: utf8["blort"]
1801 0003 "()V"                # 0006: utf8["()V"]
1901 0004 "Code"               # 0007: utf8["Code"]
2001 0012 "LocalVariableTable" # 0008: utf8["LocalVariableTable"]
2101 0003 "foo"                # 0009: utf8["foo"]
2201 0003 "bar"                # 000a: utf8["bar"]
2301 0003 "baz"                # 000b: utf8["baz"]
2401 0002 "[I"                 # 000c: utf8["[I"]
25
260001  # access_flags
270001  # this_class
280002  # super_class
290000  # interfaces_count
300000  # fields_count
310001  # methods_count
32
33# methods[0]
340001  # access_flags
350005  # name
360006  # descriptor
370001  # attributes_count
38# attributes[0]
390007      # name
4000000034  # length
410001      # max_stack
420002      # max_locals
4300000002  # code_length
44b1        # 0000: return
45b1        # 0001: return
460000      # exception_table_length
470001      # attributes_count
48# attributes[0]
490008      # name
5000000020  # length
510003      # local_variable_table_length
520000 0002 0009 000c 0000  # 0000..0002 foo:[I #0000
530000 0001 000a 000c 0001  # 0000..0001 bar:[I #0001
540001 0001 000b 000c 0001  # 0001..0002 baz:[I #0001
55
560000  # attributes_count
57