use of com.alibaba.fastjson.util.ASMClassLoader 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);
}
Aggregations