Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
In org.springframework.core.KotlinReflectionParameterDiscoverer::get ParameterNames() spring tries to get names of parameters, by getting the kotlin function and calling getParameters() on it.
If you use the new inline class feature (since kotlin 1.3) in data classes, spring data mongo can not build the mapper, because the function mentioned above, returns null.
The cause for this is, that kotlin create a syntetic constructer as the default constructor, that unboxes the inline classes.
The getParameterNames function should support syntetic functions, if somehow possible, so we can use inline classes fully in the spring framework.