mirror of
https://github.com/alibaba/fastjson.git
synced 2026-10-22 09:34:13 +08:00
修正ASM优化错误
git-svn-id: http://code.alibabatech.com/svn/fastjson/trunk/fastjson@1362 fb902949-7fc4-4485-a80f-4d6ff335c879
This commit is contained in:
@@ -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>",
|
||||
|
||||
Reference in New Issue
Block a user