0

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(Unknown Source)

I used the code

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

what is the problem here?

skaffman
  • 398,947
  • 96
  • 818
  • 769
Jayanga
  • 889
  • 6
  • 15

1 Answers1

0

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

Jayanga
  • 889
  • 6
  • 15