Details
-
Type:
Feature Request
-
Status: Closed (View Workflow)
-
Priority:
Critical
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 0.1.0
-
Component/s: None
-
Labels:None
Description
When using JAXB marshal/unmarshal, things that are not mapped in the JAXB model will not be exported. This means the Descriptors will have to map every possible option which is a bit tedious, and all comments etc will be gone.
The JAXB Binder should fix this according to spec/javadoc, but the RI bundled with JDK does this in a very simple way. It can map partial parts of a xml doc, but that part has to be fully mapped. but even fully mapped, comments are lost. (the complete mapped node is replaced, not merged like in EclipseLink Moxy)
Gliffy Diagrams
Issue Links
- blocks
-
ARQ-410
Unable to test an archive with comments in web.xml
-
- Closed
-
- incorporates
-
SHRINKDESC-31
Descriptors clobbers file markup and formatting
-
- Closed
-
Maybe a workaround for now is to use a JAXB mapping generator to pre generate the whole model. We hide the model behind our interfaces anyway, so it doesn't matter how ugly it is.