Home | History | Annotate | Download | only in 008-field
      1 #
      2 # sample small-but-valid classfile
      3 #
      4 
      5 cafe babe  # magic
      6 0000       # minor_version
      7 002e       # major_version
      8 0007       # constant_pool_count
      9 
     10 #
     11 # constant_pool
     12 #
     13 01 0005 "Small"            # 0001: utf8["Small"]
     14 01 0010 "java/lang/Object" # 0002: utf8["java/lang/Object"]
     15 07 0001                    # 0003: class[Small]
     16 07 0002                    # 0004: class[java/lang/Object]
     17 01 0003 "foo"              # 0005: utf8["foo"]
     18 01 0001 "I"                # 0006: utf8["I"]
     19 
     20 0021  # access_flags
     21 0003  # this_class
     22 0004  # super_class
     23 0000  # interfaces_count
     24 
     25 0001  # fields_count
     26 
     27 # fields[0]
     28 ffff  # access_flags
     29 0005  # name
     30 0006  # descriptor
     31 0000  # attributes_count
     32 
     33 0000  # methods_count
     34 0000  # attributes_count
     35