Closed
Description
Marco opened DATACMNS-1197 and commented
interface RouteRepository :
JpaRepository<MstRoute, Long>,
QuerydslPredicateExecutor<MstRoute>,
RouteRepositoryExtension
where RouteRepositoryExtension
contains a (read-only) kotlin property will yield
java.lang.IllegalArgumentException: Cannot resolve method 'getFindRouteQuery' parameter -1 to a Kotlin function!
at org.springframework.data.util.ReflectionUtils.isNullable(ReflectionUtils.java:409) ~[spring-data-commons-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.data.repository.core.support.MethodInvocationValidator$Nullability.isNullableParameter(MethodInvocationValidator.java:157) ~[spring-data-commons-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.data.repository.core.support.MethodInvocationValidator$Nullability.of(MethodInvocationValidator.java:118) ~[spring-data-commons-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.data.repository.core.support.MethodInvocationValidator.invoke(MethodInvocationValidator.java:80) ~[spring-data-commons-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) ~[spring-aop-5.0.0.RELEASE.jar:5.0.0.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) ~[spring-aop-5.0.0.RELEASE.jar:5.0.0.RELEASE]
at com.sun.proxy.$Proxy115.getFindRouteQuery(Unknown Source) ~[na:na]
when invoked
Affects: 2.0 GA (Kay)
Referenced from: pull request #254
Backported to: 2.0.1 (Kay SR1)