The result of Kotlin suspend fun cannot be received from @AfterReturning in spring boot 3.2.x version. #33072
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: invalid
An issue that we don't feel is valid
theme: kotlin
An issue related to Kotlin support
Affects:
After calling the
suspend func
, we are post-processing the response (ex logging,...) through@AfterReturning
.Until spring boot version 3.1.12, we were able to receive and process
returning
value as desired.However, when we upgraded the version to 3.2.x (and even 3.3.x), an issue occurred where MonoOnErrorResume was returned as a
returning
value.When looking at the log flow, it seems that starting from 3.2.x, the @AfterReturning part is executed before the target function ends.
boot 3.1.12
boot 3.2.5
Are there any changes to usage, or are there any parts where support has ended?
The text was updated successfully, but these errors were encountered: