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

Use ParameterizedTypeReference instead of Class in Kotlin extensions

    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>() {}.

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              sdeleuze Sébastien Deleuze
              Reporter:
              sdeleuze Sébastien Deleuze
              Last updater:
              Stéphane Nicoll
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                17 weeks, 1 day ago