Ryan Bohn opened SPR-17640 and commented

When using spring mvc with Kotlin,  I prefer to use data classes  with immutable fields.  This works for most cases.  However, when I'm using MultipartFile as a field on a request object, I am forced to use a var field and make the field nullable in order to get it to work.

I've attached a sample project exhibiting this behavior.  Just follow the instructions in the README.txt.


Affects: 5.1.3

Attachments: - issue.zip (17.19 kB)