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

Use ParameterizedTypeReference instead of Class in Kotlin extensions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 5.0 RC4
    • Component/s: Web
    • Labels:
    • Last commented by a User:
      true

      Description

      In order to avoid type erasure, we should use ParameterizedTypeReference based methods in RestOperations, WebClient, ClientResponse, ServerRequest and ServerResponse extensions.

      This should be done by keeping reified type parameters but changing T:class.java to object : ParameterizedTypeReference<T>() {}.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sdeleuze S├ębastien Deleuze
              Reporter:
              sdeleuze S├ębastien Deleuze
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 23 weeks, 6 days ago