Home | History | Annotate | Download | only in 003-magic-version-access
      1 #
      2 # sample small-but-valid classfile
      3 #
      4 
      5 cafe babe  # magic
      6 0000       # minor_version
      7 0031       # major_version
      8 0005       # 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 
     18 ffff  # access_flags
     19 0003  # this_class
     20 0004  # super_class
     21 0000  # interfaces_count
     22 0000  # fields_count
     23 0000  # methods_count
     24 
     25 0000  # attributes_count
     26