ASM 6.1-beta regression: Textifier.visitLdcInsn throws exception for method types
Textifier.visitLdcInsn throws an AssertionError if the argument is a method type:
Textifier textifier = new Textifier();
textifier.visitLdcInsn(Type.getMethodType("()V"));
Stacktrace:
Exception in thread "main" java.lang.AssertionError
at org.objectweb.asm.Type.getClassName(Type.java:523)
at org.objectweb.asm.util.Textifier.visitType(Textifier.java:610)
at org.objectweb.asm.util.Textifier.visitLdcInsn(Textifier.java:959)
This is a regression in 6.1-beta, version 6.0 works fine.