I would like to marshalling a java object from a java library.
When marshalling a java object using JAXB marschaller, I have got a problem:
class A does not have a no-arg default constructor
I used a Java Decomplier to check the class a implementation, it is like this:
public final class AImpl
implements A
That means I can not extends class AImpl.
So How can I fix the problem with no-arg default constructor?
You can use
XmlAdapterfor this use case. For an example see: