Home | History | Annotate | Download | only in 016-field-attrib-Deprecated
      1 #
      2 # sample small-but-valid classfile
      3 #
      4 
      5 cafe babe  # magic
      6 0000       # minor_version
      7 002e       # major_version
      8 0008       # 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 000a "Deprecated"       # 0005: utf8["Deprecated"]
     18 01 0001 "a"                # 0006: utf8["a"]
     19 01 0001 "I"                # 0007: utf8["I"]
     20 
     21 0021  # access_flags
     22 0003  # this_class
     23 0004  # super_class
     24 0000  # interfaces_count
     25 
     26 0001  # fields_count
     27 
     28 # fields[0]
     29 0001  # access_flags
     30 0006  # "a"
     31 0007  # "I"
     32 0001  # attributes_count
     33 # attributes[0]
     34 0005      # name
     35 00000000  # length
     36 
     37 0000  # methods_count
     38 0000  # attributes_count
     39