package org.copperengine.core.instrument;

import org.objectweb.asm.Opcodes;

public class ASMConstants {
    public static int API_VERSION = getApiVersion();

    private static int getApiVersion() {
        String version = System.getProperty("org.copperengine.asm.api.version", "7").trim();
        switch (version) {
            case "5": return Opcodes.ASM5;
            case "6": return Opcodes.ASM6;
            case "7": return Opcodes.ASM7;
            default: throw new IllegalArgumentException("Unsupported ASM API version: " + version);
        }
    }
}

@@ -275,17 +275,17 @@
 sion%22, %22
-7
+8
 %22).trim(
@@ -443,16 +443,59 @@
 s.ASM7;%0A
+            case %228%22: return Opcodes.ASM8;%0A
         

use ASM8 as default API version