• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# sample small-but-valid classfile
3#
4
5cafe babe  # magic
60000       # minor_version
7002e       # major_version
8000b       # constant_pool_count
9
10#
11# constant_pool
12#
1301 0010 "java/lang/Object" # 0001: utf8["java/lang/Object"]
1401 0005 "Small"            # 0002: utf8["Small"]
1501 0003 "Foo"              # 0003: utf8["Foo"]
1601 0003 "Bar"              # 0004: utf8["Bar"]
1701 0003 "Baz"              # 0005: utf8["Baz"]
1807 0001                    # 0006: class[java/lang/Object]
1907 0002                    # 0007: class[Small]
2007 0003                    # 0008: class[Foo]
2107 0004                    # 0009: class[Bar]
2207 0005                    # 000a: class[Baz]
23
240001  # access_flags
250007  # this_class
260006  # super_class
270003  # interfaces_count
280008 0009 000a  # interfaces
29
300000  # fields_count
310000  # methods_count
32
330000  # attributes_count
34