• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# sample small-but-valid classfile
3#
4
5cafe babe  # magic
60000       # minor_version
7002e       # major_version
80014       # constant_pool_count
9
10#
11# constant_pool
12#
1301 0005 "Small"            # 0001: utf8["Small"]
1401 0010 "java/lang/Object" # 0002: utf8["java/lang/Object"]
1507 0001                    # 0003: class[Small]
1607 0002                    # 0004: class[java/lang/Object]
1701 0005 "blort"            # 0005: utf8["blort"]
1801 0007 "x/y/Zzz"          # 0006: utf8["x/y/Zzz"]
1901 0003 "()V"              # 0007: utf8["()V"]
200c 0005 0006               # 0008: nat[blort:x/y/Zzz]
210c 0005 0007               # 0009: nat[blort:()V]
2209 0003 0008               # 000a: field[Small.blort:x/y/Zzz]
230a 0003 0009               # 000b: method[Small.blort:()V]
240b 0003 0009               # 000c: ifaceMethod[Small.blort:()V]
2508 0001                    # 000d: string["Small"]
2603 12345678                # 000e: integer[0x12345678]
2704 42f6e666                # 000f: float[123.45]
2805 12345678 9abcdef0       # 0010: long[0x1234567890abcdef0]
2906 41195895 5f8a0903       # 0012: double[415269.3433]
30
310001  # access_flags
320003  # this_class
330004  # super_class
340000  # interfaces_count
350000  # fields_count
360000  # methods_count
37
380000  # attributes_count
39