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

fix searching for fallback methods #829

Merged
merged 1 commit into from
May 18, 2023

Conversation

Ladicek
Copy link
Contributor

@Ladicek Ladicek commented May 18, 2023

This commit fixes the algorithm that finds fallback methods in case of Kotlin suspend functions that declare an additional exception parameter. This additional parameter must be at the very end of the function signature, with the exception of Kotlin suspend functions, where the very last parameter must be the Kotlin Continuation. In this case, the exception parameter must be the second last.

Fixes #828

This commit fixes the algorithm that finds fallback methods in case of Kotlin
`suspend` functions that declare an additional exception parameter. This
additional parameter must be at the very end of the function signature, with
the exception of Kotlin `suspend` functions, where the very last parameter
must be the Kotlin `Continuation`. In this case, the exception parameter
must be the _second last_.
@Ladicek Ladicek added this to the 6.2.3 milestone May 18, 2023
@Ladicek Ladicek merged commit 7b564f7 into smallrye:main May 18, 2023
@Ladicek Ladicek deleted the fix-kotlin-suspend-fallback-methods branch May 18, 2023 14:53
@thjaeckle
Copy link

Wow, that was quick. Thanks a lot for the fix 👍

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

Successfully merging this pull request may close these issues.

@Fallback strategy seems not to work with Kotlin coroutines and additional exception in method signature
2 participants