Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
Unknown
Description
It would be nice to have XmlAdapter versions of the DataTypeAdapter
https://docs.oracle.com/javase/8/docs/api/javax/xml/bind/annotation/adapters/XmlAdapter.html
The reason for this is that when referencing static methods (e.g. using DataTypeAdapter directly) in binding files this generates adapters (and typically into the package:
org/w3/_2001/xmlschema/
named Adapter1, Adapter2 etc
which is a ticking bomb when having several different generations with jaxb in an application. Using XmlAdapters will simply refer to the implementing class, thus avoiding generation of code in the 1st place, and secondly avoid overlapping classnames when generating in different modules.