docx-stamper icon indicating copy to clipboard operation
docx-stamper copied to clipboard

Proxy-ing problems when used with Kotlin data classes

Open joffrey-bion opened this issue 6 years ago • 1 comments

I'm using DocxStamper from Kotlin, and my context for templating is basically full of data classes.

Data classes are final and don't have a 0-arg constructor. Both of which seem to be necessary when using DocxStamper, at least for complex comment-processored stuff from what I see.

Could you please explain why proxies are needed here? Is there a way for me to work around the problem?

joffrey-bion avatar Aug 31 '18 14:08 joffrey-bion

In fact, even without a data class, when providing a default no-arg constructor and making the class non final, the proxy doesn't seem to provide data when processing comments... weird.

joffrey-bion avatar Sep 01 '18 11:09 joffrey-bion