mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8329099: Undocumented exception thrown by Instruction factory methods accepting Opcode
Reviewed-by: briangoetz
This commit is contained in:
parent
def257727d
commit
97c180892b
17 changed files with 48 additions and 0 deletions
|
@ -49,6 +49,8 @@ public sealed interface StackInstruction extends Instruction
|
|||
*
|
||||
* @param op the opcode for the specific type of stack instruction,
|
||||
* which must be of kind {@link Opcode.Kind#STACK}
|
||||
* @throws IllegalArgumentException if the opcode kind is not
|
||||
* {@link Opcode.Kind#STACK}.
|
||||
*/
|
||||
static StackInstruction of(Opcode op) {
|
||||
Util.checkKind(op, Opcode.Kind.STACK);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue