Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4848

WebClient does not process GenericEntity correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.4, 2.6.7, 2.5.10, 3.0.0-milestone1
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      GenericEntity is JAX-RS 1.0 class which can be used to write explicit collection or other generic class instances, example:

       
      GenericEntity<List<Book>> genericEntity = 
                  new GenericEntity<List<Book>>(books) {
                  };
      

      or

      class Representation<T> {
       private T data;
       public Representation(T data) {
           this.data = data;
       }
      }
      
      Representation<Book> rep = new Representation<Book>(new Book());
      
      GenericEntity<Representation<Book>> genericEntity2 = 
         new GenericEntity<Representation<Book>>(rep, Book.class);
      
      

      This is supported on the server, when writing responses, but not with WebClient

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              sergey_beryozkin Sergey Beryozkin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: