修正ASM优化错误

git-svn-id: http://code.alibabatech.com/svn/fastjson/trunk/fastjson@1362 fb902949-7fc4-4485-a80f-4d6ff335c879
This commit is contained in:
wenshao
2011-09-17 09:39:54 +00:00
parent 7ecb4263d8
commit f71a4f7bb8
@@ -319,11 +319,11 @@ public class ASMDeserializerFactory implements Opcodes {
if (defaultConstructor != null) {
_batchSet(context, mw);
} else {
mw.visitTypeInsn(NEW, getType(context.getClazz()));
mw.visitInsn(DUP);
Constructor<?> creatorConstructor = context.getBeanInfo().getCreatorConstructor();
if (creatorConstructor != null) {
mw.visitTypeInsn(NEW, getType(context.getClazz()));
mw.visitInsn(DUP);
_loadCreatorParameters(context, mw);
mw.visitMethodInsn(INVOKESPECIAL, getType(context.getClazz()), "<init>",