Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-48

Replace java.util.Map in CommandEndpoint by custom map implementation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • services
    • None

      JAXB currently doesn't support (XML) marshalling of maps as top-level element (see [2]). We should replace java.util.Map by a custom implementation and add our own marshaller.

      Citing [1]:
      Unfortunately, as of [JAXB] 2.1, this processing is only defined for bean properties and not when you marshal HashMap as a top-level object (such as a value in JAXBElement.)

      [1] https://jaxb.java.net/guide/Mapping_your_favorite_class.html
      [2] https://java.net/jira/browse/JAXB-223 (JAXB doesn't support collection classes as top level objects)

        Acceptance criteria

              Unassigned Unassigned
              pmundt Philip Mundt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD