1#
2# sample small-but-valid classfile
3#
4
5cafe babe  # magic
60000       # minor_version
7002e       # major_version
80009       # 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 000f "LineNumberTable"  # 0008: utf8["LineNumberTable"]
21
220001  # access_flags
230001  # this_class
240002  # super_class
250000  # interfaces_count
260000  # fields_count
270001  # methods_count
28
29# methods[0]
300001  # access_flags
310005  # name
320006  # descriptor
330001  # attributes_count
34# attributes[0]
350007      # name
360000001e  # length
370001      # max_stack
380001      # max_locals
3900000002  # code_length
40b1        # 0000: return
41b1        # 0001: return
420000      # exception_table_length
430001      # attributes_count
44# attributes[0]
450008      # name
460000000a  # length
470002      # line_number_table_length
480000 0011 # offset 0000, line #17
490001 0022 # offset 0001, line #34
50
510000  # attributes_count
52