Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit

Permalink
bug fixed asm
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Nov 28, 2012
1 parent 7141e65 commit d0ff65e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/alibaba/fastjson/parser/ParserConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ public ObjectDeserializer createJavaBeanDeserializer(Class<?> clazz, Type type)

try {
return ASMDeserializerFactory.getInstance().createJavaBeanDeserializer(this, clazz, type);
} catch (NoSuchMethodException error) {
return new JavaBeanDeserializer(this, clazz, type);
} catch (ASMException asmError) {
return new JavaBeanDeserializer(this, clazz, type);
} catch (Exception e) {
Expand Down Expand Up @@ -445,8 +447,7 @@ public FieldDeserializer createFieldDeserializer(ParserConfig mapping, Class<?>
try {
return ASMDeserializerFactory.getInstance().createFieldDeserializer(mapping, clazz, fieldInfo);
} catch (Throwable e) {
// TODO Auto-generated catch block
e.printStackTrace();
// skip
}

return createFieldDeserializerWithoutASM(mapping, clazz, fieldInfo);
Expand Down

0 comments on commit d0ff65e

Please sign in to comment.