Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-16515

Incorrect return type of Kotlin suspending functions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Investigating
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.0.3
    • Fix Version/s: 5.2 RC1
    • Component/s: Core
    • Labels:

      Description

      The return type of Kotlin suspending functions (as returned via getParameterType() and getGenericParameterType() methods of MethodParameter) is incorrect. The true return type is actually a generic type of the last parameter of the method.

      This issue affects spring-kotlin-coroutine library, specifically issues #10 and #14.

      This issue is related to SPR-15413.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sdeleuze Sébastien Deleuze
              Reporter:
              konrad-kaminski Konrad Kamiński
              Last updater:
              Spring Issues Spring Issues
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Days since last comment:
                3 years, 24 weeks, 4 days ago