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