I am currently instrumenting bytecode using BCEL. In the BCEL API, the two instructions types LOOKUPSWITCH
and TABLESWITCH
(package org.apache.bcel.generic
) are implementing interface StackProducer
. I know that these two instructions pop the operand stack (i.e. consume it) and do not produce anything on the stack, so how come they implement StackProducer
instead of StackConsumer
? Is this a bug? Thank you
(ps: I tried to post this question on the BCEL mailing list with no answer. I hope I'll find more luck here)