Search in sources :

Example 1 with ASMDeserializerFactory

use of com.alibaba.fastjson.parser.deserializer.ASMDeserializerFactory in project fastjson by alibaba.

the class TestASM_primitive method test_asm.

public void test_asm() throws Exception {
    JavaBeanInfo beanInfo = JavaBeanInfo.build(int.class, int.class, null);
    ASMDeserializerFactory factory = new ASMDeserializerFactory(new ASMClassLoader());
    Exception error = null;
    try {
        factory.createJavaBeanDeserializer(ParserConfig.getGlobalInstance(), beanInfo);
    } catch (Exception ex) {
        error = ex;
    }
    Assert.assertNotNull(error);
}
Also used : JavaBeanInfo(com.alibaba.fastjson.util.JavaBeanInfo) ASMDeserializerFactory(com.alibaba.fastjson.parser.deserializer.ASMDeserializerFactory) ASMClassLoader(com.alibaba.fastjson.util.ASMClassLoader)

Aggregations

ASMDeserializerFactory (com.alibaba.fastjson.parser.deserializer.ASMDeserializerFactory)1 ASMClassLoader (com.alibaba.fastjson.util.ASMClassLoader)1 JavaBeanInfo (com.alibaba.fastjson.util.JavaBeanInfo)1