-
Bug
-
Resolution: Fixed
-
P4
-
21
Discussions about types 'byte', 'short', 'boolean', and 'char' in JVMS sometimes misleadingly suggest that, despite using int-typed stack operations, there is some "actual" underlying smaller type being processed on the stack and stored in local variables.
The reality of the operations is that every read from heap memory converts the value to a 32-bit int, and every write converts a 32-bit int to the appropriate heap storage type.
2.11.1 should make this more clear, and additional references to small primitive types throughout chapter 2 and in 4.9.2 should align with this model.
The reality of the operations is that every read from heap memory converts the value to a 32-bit int, and every write converts a 32-bit int to the appropriate heap storage type.
2.11.1 should make this more clear, and additional references to small primitive types throughout chapter 2 and in 4.9.2 should align with this model.
- relates to
-
JDK-8342613 6.5: Opcode description issues
-
- Open
-
-
JDK-8319310 putstatic/putfield: specify truncation of byte/short/char values
-
- Resolved
-