fastjson serialize object more than 400+field errro
when the object more than 400+field , the asmSerialzerFactory create class, method too long more than 65535 , so need to split write method
请问你用的是那个版本?有试过最新版本没有?
是最新的版本,这个问题跟版本没关系吧,是一个类字段太多了,用asm生成的代码超过了java方法最大的长度65535
[email protected] From: YakoDate: 2014-07-03 10:56To: alibaba/fastjsonCC: qifanyangSubject: Re: [fastjson] fastjson serialize object more than 400+field errro (#174)请问你用的是那个版本?有试过最新版本没有?
— Reply to this email directly or view it on GitHub.
SerializeConfig config = new SerializeConfig(); config.setAsmEnable(false);//字段过多,需关闭asm
希望优化下,我有一个类800个字段,想使用asm特性,希望可以修改个版本把每300个(可配置)字段对应一个write方法,如使用反射的话和json-lib速度差不多,就没优势了