8329099: Undocumented exception thrown by Instruction factory methods accepting Opcode

Reviewed-by: briangoetz
This commit is contained in:
Adam Sotona 2024-04-16 08:23:31 +00:00
parent def257727d
commit 97c180892b
17 changed files with 48 additions and 0 deletions

View file

@ -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);