Community
Participate
Working Groups
Created attachment 256397 [details] Contains Root, Sub, and SubSub that shows the failure when run with eclipselink.jar If @XmlSeeAlso is used recursively a StackOverflowError will be thrown when a new JAXBContext is created. Example: @XmlRootElement(name="root") @XmlSeeAlso(Sub.class) public class Root {} @XmlType(name="sub") @XmlSeeAlso(SubSub.class) public class Sub {} @XmlType(name="subsub") @XmlSeeAlso(Sub.class) public class SubSub {} When JAXBContext.newInstance(Root.class) is called, the StackOverflowError will be called because it does not detect the recursive reference from SubSub to Sub. The reference implementation of JAXB does detect this and ignores the recursive reference. Thanks, Ken
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink