-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
None
-
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