[MGNLREST-48] Replace java.util.Map in CommandEndpoint by custom map implementation Created: 27/Jan/14  Updated: 14/May/21  Resolved: 14/May/21

Status: Closed
Project: Magnolia REST Framework
Component/s: services
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Philip Mundt Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

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)


Generated at Mon Feb 12 06:56:04 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.