Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324689

Summary: Potential Bug - JAXBContext & ObjectFactory
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Denise Smith <denise.mahar>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 322568    
Attachments:
Description Flags
Proposed changes and test none

Description Blaise Doughan CLA 2010-09-07 15:10:35 EDT
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.
Comment 1 Denise Smith CLA 2011-05-25 11:27:12 EDT
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).
Comment 2 Denise Smith CLA 2011-05-25 15:32:49 EDT
Created attachment 196601 [details]
Proposed changes and test
Comment 3 Denise Smith CLA 2011-05-25 15:56:16 EDT
Fixed as described.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:04:03 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:09:07 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink