Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324689 - Potential Bug - JAXBContext & ObjectFactory
Summary: Potential Bug - JAXBContext & ObjectFactory
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Denise Smith CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 322568
  Show dependency tree
 
Reported: 2010-09-07 15:10 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:09 EDT (History)
1 user (show)

See Also:


Attachments
Proposed changes and test (45.21 KB, patch)
2011-05-25 15:32 EDT, Denise Smith CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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