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