Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing spread operator in AsyncCqlOperationsExtensions.queryForObject(…) #1434

Closed
kirillovsky opened this issue Sep 18, 2023 · 2 comments
Closed
Labels
type: bug A general bug

Comments

@kirillovsky
Copy link

Hi. In commit @mp911de use spread operator for AsyncCqlOperations.queryForObject(cql: String, vararg args: Any, function: (Row, Int) -> T): ListenableFuture<T?> and AsyncCqlOperations.query(cql: String, vararg args: Any, function: (Row, Int) -> T): ListenableFuture<List<T>> extensions in AsyncCqlOperationsExtensions.kt. But in extensioninline fun <reified T : Any> AsyncCqlOperations.queryForObject(cql: String, vararg args: Any): CompletableFuture<T?> spread operator doesn't used. I just faced this problem then migrate from Java queryForObject with Class parameter to Kotlin extension queryForObject with reified type.
Can you help me? May be i do something wrong?
I use Kotlin 1.8.20, jvm target 17 and spring-data-cassandra 4.1.3

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 18, 2023
@mp911de mp911de changed the title Using spread operator in inplementation for queryForObject in AsyncCqlOperationsExtensions.kt Missing spread operator in AsyncCqlOperationsExtensions.queryForObject(…) Sep 20, 2023
@mp911de mp911de added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 20, 2023
@mp911de mp911de added this to the 4.0.11 (2022.0.11) milestone Sep 20, 2023
@mp911de
Copy link
Member

mp911de commented Sep 20, 2023

That's fixed and backported now.

@kirillovsky
Copy link
Author

Thanks a lot :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

3 participants