033jannie918tines898
New Member
I have a class that implements java.util Collection interface and I want to have a custom XML marshalling using jax-b.When I try to use an XmlAdapter, it's ignored and jax-b uses the default behavior for collection.If I remove implements Collection, jax-b uses my adapter.Following code doesn't work:\[code\]@XmlJavaTypeAdapter(value = http://stackoverflow.com/questions/12585365/MyAdapter.class)public class MyClassCollection implements Collection<MyClass> { ...}\[/code\]Following code works (but doesn't implement Collection):\[code\]@XmlJavaTypeAdapter(value = http://stackoverflow.com/questions/12585365/MyAdapter.class)public class MyClassCollection { ...}\[/code\]Does someone have an idea on how to use MyAdapter.class with a class that implements Collection?Thanks in advance!