Fix lots of deprecation warnings on ASM code

In the vast majority of cases it's known that we're calling a class method and
not an interface method
This commit is contained in:
Alexander Udalov
2014-07-26 01:05:03 +04:00
parent 99025de748
commit c69303fd1d
21 changed files with 129 additions and 124 deletions
@@ -16,11 +16,11 @@
package org.jetbrains.jet.preloading.instrumentation;
import org.jetbrains.jet.preloading.instrumentation.annotations.*;
import org.jetbrains.org.objectweb.asm.*;
import org.jetbrains.org.objectweb.asm.commons.InstructionAdapter;
import org.jetbrains.org.objectweb.asm.util.Textifier;
import org.jetbrains.org.objectweb.asm.util.TraceMethodVisitor;
import org.jetbrains.jet.preloading.instrumentation.annotations.*;
import java.io.PrintStream;
import java.lang.annotation.Annotation;
@@ -580,7 +580,7 @@ public class InterceptionInstrumenter {
private static void box(InstructionAdapter ia, Type from, Class<?> boxedClass) {
Type boxedType = Type.getType(boxedClass);
ia.invokestatic(boxedType.getInternalName(), "valueOf", "(" + from.getDescriptor() + ")" + boxedType.getDescriptor());
ia.invokestatic(boxedType.getInternalName(), "valueOf", "(" + from.getDescriptor() + ")" + boxedType.getDescriptor(), false);
}
public void dump(PrintStream out) {