From 7b029d024caff90bc75506cf189b269ffe15028a Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Fri, 1 May 2015 10:49:51 +0300 Subject: [PATCH] Upgrade to ASM5 API --- .../org/teavm/classlib/impl/report/JCLComparisonVisitor.java | 2 +- teavm-core/src/main/java/org/teavm/parsing/ProgramParser.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/teavm-classlib/src/main/java/org/teavm/classlib/impl/report/JCLComparisonVisitor.java b/teavm-classlib/src/main/java/org/teavm/classlib/impl/report/JCLComparisonVisitor.java index c82b298b0..3e8ebf29b 100644 --- a/teavm-classlib/src/main/java/org/teavm/classlib/impl/report/JCLComparisonVisitor.java +++ b/teavm-classlib/src/main/java/org/teavm/classlib/impl/report/JCLComparisonVisitor.java @@ -32,7 +32,7 @@ class JCLComparisonVisitor extends ClassVisitor { private JCLClass jclClass; public JCLComparisonVisitor(ClassReaderSource classSource, Map packageMap) { - super(Opcodes.ASM4); + super(Opcodes.ASM5); this.classSource = classSource; this.packageMap = packageMap; } diff --git a/teavm-core/src/main/java/org/teavm/parsing/ProgramParser.java b/teavm-core/src/main/java/org/teavm/parsing/ProgramParser.java index a379c459a..123619605 100644 --- a/teavm-core/src/main/java/org/teavm/parsing/ProgramParser.java +++ b/teavm-core/src/main/java/org/teavm/parsing/ProgramParser.java @@ -367,7 +367,7 @@ public class ProgramParser implements VariableDebugInformation { } // 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 public void visitVarInsn(int opcode, int local) { switch (opcode) {