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.
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:
The text was updated successfully, but these errors were encountered: