BeanUtils.getParameterNames fails for Kotlin data classes #34760
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: waiting-for-triage
An issue we've not yet triaged or decided on
theme: kotlin
An issue related to Kotlin support
While working on spring-projects/spring-graphql#1186, I have noticed that
BeanUtils.getParameterNames(Constructor)
checks that the number of detected parameter names is equal to the number of constructor arguments detected via Java reflection.In the case of Kotlin data classes, there is an additional
kotlin.jvm.internal.DefaultConstructorMarker
constructor argument which fails with the following:We can reproduce this with:
The text was updated successfully, but these errors were encountered: