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

Bug 331159

Summary: Object not set on ValidationEventLocator
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
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:
Attachments:
Description Flags
Core - Fix
none
MOXy - Fix
none
MOXy - Test Cases none

Description Blaise Doughan CLA 2010-11-25 16:53:13 EST
When a ValidationEvent is thrown on a marshal operation, the correponding object is not being set on the ValidationEventLocator.
Comment 1 Blaise Doughan CLA 2010-12-08 11:56:29 EST
Created attachment 184797 [details]
Core - Fix
Comment 2 Blaise Doughan CLA 2010-12-08 11:56:49 EST
Created attachment 184798 [details]
MOXy - Fix
Comment 3 Blaise Doughan CLA 2010-12-08 16:21:24 EST
Created attachment 184818 [details]
MOXy - Test Cases
Comment 4 Blaise Doughan CLA 2010-12-09 10:38:43 EST
Code checked into trunk at rev:  8670

Code reviewed by:  Matt MacIvor

Fix details:

ValidatingMarshalRecord
- Introduced a subclass of SAXParseException (ValidatingMarshalRecord.MarshalSAXParseException) with a property for holding the relevant object.
- Introduced an ErrorHandler that converts instances of SAXParseException to MarshalSAXParseException.  The relevant object is obtained from the MarshalRecord.

MarshalRecord
- The MarshalRecord was not maintaining the correct owning object.  This has been addressed by adding two new methods to marshal record:  beforeContainmentMarshal & afterContainmentMarshal.
- These methods are also responsible for call the Marshal Listener.

Node Values
- These classes have been updated to call the new methods on MarshalRecord.
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:16:34 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:32:17 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink