Operation Set static
field in class
Bytecode
Type | Description |
u1 | putstatic_quick opcode = 0xD3 (211) |
u2 | index |
The unsigned index is used to point to field entry in the constant pool . The
constant pool item must be a field reference to a class (static
) field that
must have already been successfully resolved to a type that is one word wide. The value
must be of a type appropriate to that class field. The value is popped from the
operand stack, and that class field is set to value.
Notes
The opcode of this instruction was originally putstatic, operating on a static
field determined dynamically to be one word wide. The operands of the putstatic
instruction are not modified. There is no equivalent to the putfield_quick
instruction, storing a class offset as an instruction operand, for one-word static
fields.