json encoder/decoder generator - method exceeds 65536 bytes problem

84 views
Skip to first unread message

Mike

unread,
Aug 6, 2012, 9:08:38 AM8/6/12
to rest...@googlegroups.com
Hello,

In my project we use abstract class DTO with more than 70 children, and each children has plenty of fields.
Recently after adding new field I've got an error, that DTO_Generated_JsonEncoderDecoder.decode method exceeds the JVM mithod size limit.
As a workaround, inside the generator I placed a HashMap <String, Callable>, in decode method put generated code to callables, than this callables put to hashmap by classname.
When new object received, callable called from hashmap and fields are filled.

I don't think that my code is suitable for patch, but the idea should be useful and solves the problem.
Please consider its implementation.

Best regards,
Michael

Eric Le

unread,
Nov 20, 2018, 9:12:05 AM11/20/18
to RestyGWT
6 years later and we ran into the same issue. I've worked through the RestyGWT code and modified how some of the generator works using static * import and removing the full class path reference to the AbstractJsonEncoderDecoder as well as switched up some of the null check logic. 

Eric
Reply all
Reply to author
Forward
0 new messages