I know that this is specified somewhere, but just can’t find it.
Somewhere in the JAXB api docs or spec there must be information about which properties a class must fulfill, so that JAXB can marshal|unmarshal it without the necessity of an JAXB type adapter.
It was something about toString(), the List interface, certain ctor signature must fit, and so on …
Please point me to a location.
Section 5.4.1 of the JAXB 2.2 specification (JSR-222) talks about the creation requirements:
Section 5.5 covers Properties
Other
toString().