semoro
10/07/2016, 6:13 PMval mv = visitor.visitMethod(ACC_PUBLIC, "someTestMethod", Type.getMethodType(Type.VOID_TYPE, Type.BOOLEAN_TYPE).descriptor, null, null)
mv.visitParameter("p0", 0)
mv.visitInsn(RETURN)
mv.visitEnd()
Bytecode trace
// access flags 0x1
public someTestMethod(Z)V
// parameter p0
RETURN
MAXSTACK = 0
MAXLOCALS = 2
And I ask in which cases those bytecode op(parameter) is used.
To write test for above code.
So generally my question: Is above code and bytecode generated are correct?