Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Invalid
-
Affects Version/s: 2.3.1 (Neumann SR1), 2.4 M1 (2020.0.0), 2.3.2 (Neumann SR2)
-
Fix Version/s: None
-
Component/s: Repositories
-
Labels:None
-
Environment:Fedora Workstation 32 x64, OpenJDK 11, Kotlin 1.3.72
Description
Attempting to create a repository that extends CoroutineSortingRepository results in the following exception being thrown on bean instantiation:
java.lang.IllegalArgumentException: Failed to create query for method public abstract kotlinx.coroutines.flow.Flow org.springframework.data.repository.kotlin.CoroutineSortingRepository.findAll(org.springframework.data.domain.Sort)! No property findAll found for type TestModel!
It appears that the findAll(sort) method added by CoroutineSortingRepository is getting parsed as a query for some reason.
The attached reproduction project is using Spring Boot 2.4.0-M1, but the same code also reproduces the issue on 2.3.1.RELEASE and 2.3.2.BUILD-SNAPSHOT.