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

Proper handling of parameterized types in RestTemplate

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.2 M2
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      Currently, the RestTemplate has no way to handle generic types. In other words, the following does not work:

      List<MyDomain> myDomainList = restTemplate.getForObject(uri, List.class);
      

      This should be fixed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rstoya05-aop Rossen Stoyanchev
                Reporter:
                arjen.poutsma Arjen Poutsma
                Last updater:
                Juergen Hoeller
              • Votes:
                14 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 35 weeks, 4 days ago