Skip to content
Permalink
Browse files
ASM version check from 2.7.x
git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1543232 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
dkulp committed Nov 18, 2013
1 parent 385cb45 commit 3cebf4150a69f9bbaa3541e47a32714fc948e5bc
Showing 1 changed file with 8 additions and 2 deletions.
@@ -69,7 +69,13 @@ public class ASMHelper {
private static void tryClass(String s) {
if (cwClass == null) {
try {
cwClass = ClassLoaderUtils.loadClass(s, ASMHelper.class);
Class<?> c2 = ClassLoaderUtils.loadClass(s, ASMHelper.class);

//old versions don't have this, but we need it
Class<?> cls = ClassLoaderUtils.loadClass(c2.getPackage().getName() + ".MethodVisitor", c2);
cls.getMethod("visitFrame", Integer.TYPE, String.class,
String.class, String.class);
cwClass = c2;
} catch (Throwable t) {
//ignore
}
@@ -413,7 +419,7 @@ public Class<?> realType() {
throw new RuntimeException(e);
}
}

public interface ClassWriter {
@WrapReturn(AnnotationVisitor.class)
AnnotationVisitor visitAnnotation(String cls, boolean t);

0 comments on commit 3cebf41

Please sign in to comment.