7.5.99 sreturn

Return short from method

Format

sreturn

Forms

sreturn = 120 (0x78)

Stack

…, value → [empty]

Description

The value must be of type short. It is popped from the operand stack of the current frame ( Section 3.5, Frames) and pushed onto the operand stack of the frame of the invoker. Any other values on the operand stack of the current method are discarded.

The virtual machine then reinstates the frame of the invoker and returns control to the invoker.