开发者

Error using ASMifierClassVisitor

开发者 https://www.devze.com 2023-01-23 14:54 出处:网络
I wanted to use ASMifierClassVisitor tool to get the asm code of creating a class but when I use it I get the error

I wanted to use ASMifierClassVisitor tool to get the asm code of creating a class but when I use it I get the error

java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;[Lorg/objectweb/asm/Attribute;Z)V
        at org.objectweb.asm.util.ASMifierClassVisitor.main(U开发者_JS百科nknown Source)

I used the code

ASMifierClassVisitor.main(new String[]{testforloops.Equivalent.class.getName()});

what is the problem here?


I corrected the issue. I had asm-util-2.3 before asm-util-3.3 in my classpath when I removed previous version of ASM I could run the code without any problem

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号