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

Jackson type info is lost in a GET request returning a collection of objects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 3.0.1.Final
    • None
    • None

      I'm having a simple class hierarchy: an abstract class AbstractCustomer and 2 derived concrete classes.
      1) When the GET request's method directly returns a list of objects of AbstractCustomer, then the mapping information is available (as defined with @JsonTypeInfo and @JsonSubTypes)
      2) However, when the GET request's method returns a Response object encapsulating the same list (plus a link header), then the mapping information isn't sent to the client.
      I'll attach a testcase.

              patriot1burke@gmail.com Bill Burke (Inactive)
              juergen.zimmermann Juergen Zimmermann (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: