throws ProxyGenerationException
{
// was: final String descriptor = Type.getConstructorDescriptor(classToProxy.getDeclaredConstructor());
// but we need to get a default constructor even if the bean uses constructor injection
final MethodVisitor mv = cw.visitMethod(Opcodes.ACC_PUBLIC, "<init>", "()V", null, null);
mv.visitCode();
mv.visitVarInsn(Opcodes.ALOAD, 0);
mv.visitMethodInsn(Opcodes.INVOKESPECIAL, classFileName, "<init>", "()V", false);
mv.visitVarInsn(Opcodes.ALOAD, 0);
mv.visitInsn(Opcodes.ACONST_NULL);