simonorono
03/13/2016, 3:11 PMimport org.objectweb.asm.ClassWriter
import org.objectweb.asm.Opcodes
import sron.grpc.compiler.internal.GrpParser
class Generation : Phase(), Opcodes {
    private val cw = ClassWriter(0)
    override fun enterInit(ctx: GrpParser.InitContext) {
        super.enterInit(ctx)
        cw.visit(V1_8 /* Other parameters */)
    }
    override fun exitInit(ctx: GrpParser.InitContext) {
        super.exitInit(ctx)
    }
}
However, that V1_8 it's defined here in the Opcodes interface:
public interface Opcodes {
    // ASM API versions
    int ASM4 = 4 << 16 | 0 << 8 | 0;
    int ASM5 = 5 << 16 | 0 << 8 | 0;
    // versions
    int V1_1 = 3 << 16 | 45;
    int V1_2 = 0 << 16 | 46;
    int V1_3 = 0 << 16 | 47;
    int V1_4 = 0 << 16 | 48;
    int V1_5 = 0 << 16 | 49;
    int V1_6 = 0 << 16 | 50;
    int V1_7 = 0 << 16 | 51;
    int V1_8 = 0 << 16 | 52;
    ...
Nevertheless, I can not access it without prefixing with Opcodes like Opcodes.V1_8. Is this normal behavior?