Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364410 - JAXB Marshal/Unmarshal event callbacks missed for classes not included in the original list
Summary: JAXB Marshal/Unmarshal event callbacks missed for classes not included in the...
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: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 376876
  Show dependency tree
 
Reported: 2011-11-21 14:16 EST by Matt MacIvor CLA
Modified: 2022-06-09 10:34 EDT (History)
0 users

See Also:


Attachments
Proposed fix and updates tests (5.88 KB, patch)
2011-11-21 15:05 EST, Matt MacIvor CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt MacIvor CLA 2011-11-21 14:16:10 EST
When creating a JAXB Context from an array of classes, any classes discovered through references will not be checked for unmarshal/marshal callback methods. This will prevent those from being invoked later when marshalling/unmarshalling.

A workaround for this is to add all those classes to the original array passed into the context creation.
Comment 1 Matt MacIvor CLA 2011-11-21 15:05:45 EST
Created attachment 207332 [details]
Proposed fix and updates tests
Comment 2 Matt MacIvor CLA 2011-12-13 10:27:32 EST
Fix has been checked into Trunk and 2.3 streams.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:14:45 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:34:24 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink