Skip to content

Commit

Permalink
doc: fix checkcast and instanceof wrong operand
Browse files Browse the repository at this point in the history
  • Loading branch information
jumanji144 committed Jan 5, 2025
1 parent ec05f59 commit 3e70244
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/language/instructions/Jvm.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ Array type specifies the primitive type of the array, it can be one of the follo
| `anewarray {class or array}` | `int` -> `array` | creates a new array of `class` or `array`, where `array` is a array descriptor `[...`, with length `int` and pushes it onto the stack |
| `arraylength` | `array` -> `int` | gets the length of `array` and pushes it onto the stack |
| `athrow` | `object` -> | throws `object` |
| `checkcast class` | `object` -> `object` | casts `object` to `class` and pushes it onto the stack |
| `instanceof class` | `object` -> `int` | checks if `object` is an instance of `class` and pushes the result onto the stack |
| `checkcast {class or array}` | `object` -> `object` | casts `object` to `class` and pushes it onto the stack |
| `instanceof {class or array}` | `object` -> `int` | checks if `object` is an instance of `class` and pushes the result onto the stack |
| `monitorenter` | `object` -> | enters the monitor of `object` |
| `monitorexit` | `object` -> | exits the monitor of `object` |
| `multianewarray class dimensions` | `int...` -> `array` | creates a new multidimensional array of `class` with dimensions `dimensions` and pushes it onto the stack |
Expand Down

0 comments on commit 3e70244

Please sign in to comment.