Skip to content

Commit 4bfbb48

Browse files
author
Matthias Güdemann
committed
Correct section entries
1 parent 156e3d3 commit 4bfbb48

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jbmc/src/java_bytecode/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ information about their length in bytes.
5151
The integer format used in class files are unsigned integers of size 8/16/32
5252
bit, which are named as `u1`/`u2`/`u4`.
5353

54-
\subsection Access flags
54+
\subsection java-class-access-flags Access Flags
5555

5656
The JVM specification defines different access flags, e.g., `final`, `static`,
5757
`protected`, `private` etc. where different ones are applicable to the class
@@ -61,14 +61,14 @@ values. Each of these values is defined as a constant with a name prefixed with
6161
`ACC_` in JBMC, e.g., as `#define ACC_PUBLIC 0x0001` or `#define ACC_ENUM
6262
0x4000`.
6363

64-
\subsection Constant Pool
64+
\subsection java-class-constant-pool Constant Pool
6565

6666
The constant pool contains all strings and referred values that are used in the
6767
.class. This includes the names of the class itself and its super-class, as well
6868
as the names and signatures of all fields and methods. All strings in the
6969
constant pool are in UTF-16 format.
7070

71-
\subsection Fields
71+
\subsection java-class-fields Fields
7272

7373
Each member variable of a class has a field entry with a corresponding field
7474
information structure. This contains the name of the field, its raw JVM type
@@ -80,7 +80,7 @@ the generic type of an object if applicable.
8080
The name of the field, the descriptor and the signature are all represented as
8181
indices into the constant pool of the class file.
8282

83-
\subsection Methods
83+
\subsection java-class-methods Methods
8484

8585
Methods are represented in a similar way as fields. Each method has an
8686
associated name, descriptor and optional signature entry in the constant pool
@@ -100,7 +100,7 @@ correct and creates code accordingly. The same holds true for information on
100100
local variables. It is therefore advisable to compile Java projects with the
101101
`-g` option that adds debugging information in all cases.
102102

103-
\subsection Attributes
103+
\subsection java-class-attributes Attributes
104104

105105
The last section contains additional attributes, e.g., `SourceFile` which
106106
specified from which source file the .class was compiled, `BootstrapMethods`

0 commit comments

Comments
 (0)