docx-stamper
docx-stamper copied to clipboard
Proxy-ing problems when used with Kotlin data classes
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?
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.