@@ -0,0 +1,1161 @@
+/*%0A * To change this template, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage fi.lolcatz.profiler;%0A%0Aimport org.objectweb.asm.MethodVisitor;%0Aimport org.objectweb.asm.tree.MethodNode;%0Aimport static org.objectweb.asm.Opcodes.*;%0Aimport org.objectweb.asm.tree.analysis.Analyzer;%0Aimport org.objectweb.asm.tree.analysis.AnalyzerException;%0Aimport org.objectweb.asm.tree.analysis.BasicInterpreter;%0A%0A/**%0A *%0A * @author oorissan%0A */%0Apublic class BytecodeVerifier extends MethodVisitor %7B%0A    %0A    String owner;%0A    MethodVisitor next;%0A    public BytecodeVerifier(String owner, int access, String name, String desc, MethodVisitor mv)%7B%0A        super(ASM4, new MethodNode(access, name, desc, null, null));%0A        this.owner = owner;%0A        next = mv;%0A    %7D%0A    %0A    @Override%0A    public void visitEnd()%7B%0A        System.out.println(%22BytecodeVerifier:...%22);%0A        MethodNode mn = (MethodNode) mv;%0A        Analyzer a = new Analyzer(new BasicInterpreter());%0A        try%7B%0A            a.analyze(owner, mn);%0A        %7Dcatch (AnalyzerException e)%7B%0A            throw new RuntimeException(e.getMessage());%0A        %7D%0A        mn.accept(next);%0A    %7D%0A    %0A%7D%0A

Add bytecode verifier