Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-759

RESTEasy Documentation - Code Snippet for Shared Interface Between Client and Server with Abstract Response incorrect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.3.5.Final
    • Component/s: None
    • Labels:
      None

      Description

      Current text is as follows:
      <code>
      MyInterface proxy = ProxyFactory.create(MyInterface.class, "http://localhost:8081");
      ClientResponse response = (ClientResponse)proxy.getMyListOfJAXBObjects();
      List<MyJaxbClass> list = response.getEntity(new GenericType<List<MyJaxbClass>>());
      </code>

      Probably should be:
      <code>
      MyInterface proxy = ProxyFactory.create(MyInterface.class, "http://localhost:8081");
      ClientResponse response = (ClientResponse)proxy.getMyListOfJAXBObjects();
      List<MyJaxbClass> list = (List<MyJaxbClass>)response.getEntity(new GenericType<List<MyJaxbClass>>(){});
      </code>

        Attachments

          Activity

            People

            Assignee:
            ron_sigal Ronald Sigal
            Reporter:
            cjpearson Chris Pearson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: