Details
-
Type:
New Feature
-
Status: Open
-
Priority:
Trivial
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
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.
Attachments
Issue Links
- relates to
-
DATAGRAPH-1330 Properties with type of Kotlin inline class has mangled name.
-
- Open
-
- links to