Home | History | Annotate | Download | only in 021-code-attrib-LineNumberTable
      1 #
      2 # sample small-but-valid classfile
      3 #
      4 
      5 cafe babe  # magic
      6 0000       # minor_version
      7 002e       # major_version
      8 0009       # 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 01 000f "LineNumberTable"  # 0008: utf8["LineNumberTable"]
     21 
     22 0001  # access_flags
     23 0001  # this_class
     24 0002  # super_class
     25 0000  # interfaces_count
     26 0000  # fields_count
     27 0001  # methods_count
     28 
     29 # methods[0]
     30 0001  # access_flags
     31 0005  # name
     32 0006  # descriptor
     33 0001  # attributes_count
     34 # attributes[0]
     35 0007      # name
     36 0000001e  # length
     37 0001      # max_stack
     38 0001      # max_locals
     39 00000002  # code_length
     40 b1        # 0000: return
     41 b1        # 0001: return
     42 0000      # exception_table_length
     43 0001      # attributes_count
     44 # attributes[0]
     45 0008      # name
     46 0000000a  # length
     47 0002      # line_number_table_length
     48 0000 0011 # offset 0000, line #17
     49 0001 0022 # offset 0001, line #34
     50 
     51 0000  # attributes_count
     52