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

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: