Community
Participate
Working Groups
There is a difference between the Metro and MOXy JAXB implementations. When creating a JAXBContext MOXy will introspect the types on the ObjectFactory class while Metro will not. This issue should be investigated further before officially declaring this a bug.
The difference only occurs when creating the context from a list of classes. When the context is created from a context path the ObjectFactory should still be processed automatically. Also when it is created from a list of classes the ObjectFactory is not always processed but it will be if there are annotations that may require information from it (ie: XMLElementRef).
Created attachment 196601 [details] Proposed changes and test
Fixed as described.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink