-
Notifications
You must be signed in to change notification settings - Fork 693
Closed
Labels
Milestone
Description
Wyatt Smith opened DATACMNS-1517 and commented
Here is an example with the bug: https://github.com/wyattjsmith1/SpringDataBug
When this runs, there is an IndexOutOfBoundsException
. This is caused by kotlin's synthetic constructor. I believe the issues is that synthetic constructors aren't filtered before.
buildPreferredConstructor
at org.springframework.data.mapping.model.PreferredConstructorDiscoverer.Discoverers#discover
, but there is probably a better solution to this.
Changing AccountId in the data class to a String
causes the application to work properly. Admittedly, inline classes are still experimental for Kotlin, but this might be worth investigating
Issue Links:
- DATAGRAPH-1330 Properties with type of Kotlin inline class has mangled name
7 votes, 10 watchers
V-ctor, kgrupp, martin-drozdik, kschlesselmann, evainga and 27 more