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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2.3.5.Final
    • None
    • None
    • None

      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>

              rsigal@redhat.com Ronald Sigal
              cjpearson_jira Chris Pearson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: