---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 16 Edition"
java_version: 16
chapter: "Chapter 6. The Java Virtual Machine Instruction Set"
section: "6.5.jsr_w"
heading: "jsr_w"
parent: "6.5. Instructions"
source: https://docs.oracle.com/javase/specs/jvms/se16/html/jvms-6.html#jvms-6.5.jsr_w
id: "6.5.jsr_w"
url: https://jvm.obfuscated.software/jvms/se16/6.5.jsr_w.html
raw: https://jvm.obfuscated.software/jvms/se16/6.5.jsr_w.md
---

# jsr_w

## Operation

Jump subroutine (wide index)

## Format

```
jsr_w
branchbyte1
branchbyte2
branchbyte3
branchbyte4
```

## Forms

*jsr_w* = 201 (0xc9)

## Operand Stack

... →

..., *address*

## Description

The *address* of the opcode of the instruction immediately following this *jsr_w* instruction is pushed onto the operand stack as a value of type `returnAddress`. The unsigned *branchbyte1*, *branchbyte2*, *branchbyte3*, and *branchbyte4* are used to construct a signed 32-bit offset, where the offset is (*branchbyte1* `<<` 24) | (*branchbyte2* `<<` 16) | (*branchbyte3* `<<` 8) | *branchbyte4*. Execution proceeds at that offset from the address of this *jsr_w* instruction. The target address must be that of an opcode of an instruction within the method that contains this *jsr_w* instruction.

## Notes

Note that *jsr_w* pushes the address onto the operand stack and *ret* ([§*ret*](6.5.ret.md)) gets it out of a local variable. This asymmetry is intentional.

In Oracle's implementation of a compiler for the Java programming language prior to Java SE 6, the *jsr_w* instruction was used with the *ret* instruction in the implementation of the `finally` clause ([§3.13](3.13.md), [§4.10.2.5](4.10.2.5.md)).

Although the *jsr_w* instruction takes a 4-byte branch offset, other factors limit the size of a method to 65535 bytes ([§4.11](4.11.md)). This limit may be raised in a future release of the Java Virtual Machine.
