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

Consider renaming (or rewriting) KotlinSplitterSpec.function to make the project compilable with Kotlin K2 #9028

Closed
KvanTTT opened this issue Mar 17, 2024 · 1 comment

Comments

@KvanTTT
Copy link

KvanTTT commented Mar 17, 2024

Expected Behavior

The project is compiled succesfully if switch Kotlin to some new K2 version (for instance, 2.0.0-Beta4).

Current Behavior

Compilation fails with the following error:

spring-integration/spring-integration-core/src/main/kotlin/org/springframework/integration/dsl/KotlinSplitterSpec.kt:36:3 : Inline function 'fun <reified P> function(crossinline function:
 (P) -> Any): Unit' cannot be recursive

Context

It looks like the function callee resolving is incorrect in case of using inheritance, Java, type parameters and SAM. See https://youtrack.jetbrains.com/issue/KT-66663 for detail.

@KvanTTT KvanTTT added status: waiting-for-triage The issue need to be evaluated and its future decided type: enhancement labels Mar 17, 2024
@artembilan
Copy link
Member

Was fixed via: 3849d6a

@artembilan artembilan added this to the 6.3.0-M2 milestone Mar 17, 2024
@artembilan artembilan added in: dsl and removed status: waiting-for-triage The issue need to be evaluated and its future decided labels Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants