<@U0ZFBBUBU>: the problem was caused by Spring’s `...
# announcements
d
@groostav: the problem was caused by Spring’s
DefaultJackson2JavaTypeMapper
. It somehow used different classloader internally. I think class
MessageDTO
was loaded twice and that was the reason why types didn’t match. However, when I converted the code of
DefaultJackson2JavaTypeMapper
to Kotlin and substituted the original class with the rewritten one, everything started working fine. 🤔