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

Proper handling of parameterized types in RestTemplate

    XMLWordPrintable

    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:
      true

      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:
              Spring Issuemaster
              Votes:
              14 Vote for this issue
              Watchers:
              16 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 30 weeks, 3 days ago