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

Bug 364410

Summary: JAXB Marshal/Unmarshal event callbacks missed for classes not included in the original list
Product: z_Archived Reporter: Matt MacIvor <matt.macivor>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 376876    
Attachments:
Description Flags
Proposed fix and updates tests none

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