spring-projects / spring-projects/spring-data-mongodb
Kotlin override properties cause ambiguous field mapping error. [DATAMONGO-2250]
@christophstrobl is already working on this.
Since Dec 30, 2020.
- Dominant language
- Java
- Stars
- 1.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Christoph Strobl opened DATAMONGO-2250 and commented
because the properties are repeated in the sub class. see https://kotlinlang.org/docs/reference/classes.html#overriding-properties
Reference URL: https://stackoverflow.com/questions/55417487/disambiguate-compiled-classes-in-spring-data
Issue Links:
- DATACMNS-1509 Ignore Kotlin override properties when creating PersistentEntity
Referenced from: commits https://github.com/spring-projects/spring-data-mongodb/commit/ffca6b504ea60a0a54f6546df478eabd11f512e4, https://github.com/spring-projects/spring-data-mongodb/commit/ebcaf7ed3e4b2f3ff2f8c05dac8b3d10d7204a22, https://github.com/spring-projects/spring-data-mongodb/commit/ff0887fd1d6724ca22a4d9c0a7953ff442733a8a
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.