This is my scenario. I have a generic class:
public class Tuple extends ArrayList {
//...
public Tuple(T ...members) {
this(Arrays.asLi
This might be quite old, but its the first result while searching for "JAXB duplicate fields"
Stumbled upon the same problem, this did the trick for me:
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE) // <-- made the difference
public abstract class ParentClass
{
...
}
@XmlRootElement
public class ChildClass extends ParentClass
{
...
}