Upgrade to ASM5 API

This commit is contained in:
Alexey Andreev 2015-05-01 10:49:51 +03:00
parent 358766d5f6
commit 7b029d024c
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ class JCLComparisonVisitor extends ClassVisitor {
private JCLClass jclClass; private JCLClass jclClass;
public JCLComparisonVisitor(ClassReaderSource classSource, Map<String, JCLPackage> packageMap) { public JCLComparisonVisitor(ClassReaderSource classSource, Map<String, JCLPackage> packageMap) {
super(Opcodes.ASM4); super(Opcodes.ASM5);
this.classSource = classSource; this.classSource = classSource;
this.packageMap = packageMap; this.packageMap = packageMap;
} }

View File

@ -367,7 +367,7 @@ public class ProgramParser implements VariableDebugInformation {
} }
// TODO: invokedynamic support (a great task, involving not only parser, but every layer of TeaVM) // TODO: invokedynamic support (a great task, involving not only parser, but every layer of TeaVM)
private MethodVisitor methodVisitor = new MethodVisitor(Opcodes.ASM4) { private MethodVisitor methodVisitor = new MethodVisitor(Opcodes.ASM5) {
@Override @Override
public void visitVarInsn(int opcode, int local) { public void visitVarInsn(int opcode, int local) {
switch (opcode) { switch (opcode) {