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

Bug 355766

Summary: Add support equivalent to JAXB RI's @XmlLocation
Product: z_Archived Reporter: Rick Barkhouse <rick.barkhouse>
Component: EclipselinkAssignee: Rick Barkhouse <rick.barkhouse>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: blaise.doughan
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
URL: http://wiki.eclipse.org/EclipseLink/Development/355766
Whiteboard:
Bug Depends on:    
Bug Blocks: 359251    
Attachments:
Description Flags
Patch - test cases
none
Patch - code changes
none
Patch - test cases
none
Patch - code changes
none
Patch - test cases
none
Patch - code changes
none
Patch - test cases
none
Patch - code changes
none
Patch - code changes
none
Patch - test changes
none
Patch - test changes
none
Patch - code changes
none
Patch - code changes
none
Additional Patch to support Sun annotation none

Description Rick Barkhouse CLA 2011-08-24 17:08:56 EDT
From the RI:

The @XmlLocation can be specified on:
 - a field whose type is org.xml.sax.Locator, or
 - a method that takes a Locator as the sole parameter

When a class that contains such a field/method is unmarshalled, such a field/method will receive an immutable Locator object that describes the location in the XML document where the object is unmarshalled from.
Comment 1 Rick Barkhouse CLA 2011-09-26 11:19:06 EDT
Design documentation: http://wiki.eclipse.org/EclipseLink/Development/355766
Comment 2 Rick Barkhouse CLA 2011-10-05 13:41:57 EDT
Created attachment 204616 [details]
Patch - test cases
Comment 3 Rick Barkhouse CLA 2011-10-05 13:42:16 EDT
Created attachment 204617 [details]
Patch - code changes
Comment 4 Rick Barkhouse CLA 2011-10-06 10:15:58 EDT
Created attachment 204669 [details]
Patch - test cases
Comment 5 Rick Barkhouse CLA 2011-10-06 10:16:18 EDT
Created attachment 204670 [details]
Patch - code changes
Comment 6 Rick Barkhouse CLA 2011-10-06 13:06:41 EDT
Created attachment 204696 [details]
Patch - test cases
Comment 7 Rick Barkhouse CLA 2011-10-06 13:06:58 EDT
Created attachment 204697 [details]
Patch - code changes
Comment 8 Rick Barkhouse CLA 2011-10-19 16:04:46 EDT
Created attachment 205564 [details]
Patch - test cases
Comment 9 Rick Barkhouse CLA 2011-10-19 16:05:08 EDT
Created attachment 205565 [details]
Patch - code changes
Comment 10 Rick Barkhouse CLA 2011-10-20 12:00:07 EDT
Created attachment 205654 [details]
Patch - code changes
Comment 11 Rick Barkhouse CLA 2011-10-20 12:00:32 EDT
Created attachment 205655 [details]
Patch - test changes
Comment 12 Rick Barkhouse CLA 2011-10-21 10:30:03 EDT
Created attachment 205728 [details]
Patch - test changes
Comment 13 Rick Barkhouse CLA 2011-10-21 10:30:18 EDT
Created attachment 205729 [details]
Patch - code changes
Comment 14 Rick Barkhouse CLA 2011-10-24 12:17:16 EDT
Created attachment 205844 [details]
Patch - code changes
Comment 15 Rick Barkhouse CLA 2011-10-24 13:23:54 EDT
Completed, reviewed by bdoughan.
Comment 16 Rick Barkhouse CLA 2012-05-10 13:40:34 EDT
Reopening this, as we don't have support for the actual Sun annotation.
Comment 17 Rick Barkhouse CLA 2012-05-10 14:11:02 EDT
Created attachment 215421 [details]
Additional Patch to support Sun annotation
Comment 18 Rick Barkhouse CLA 2012-05-10 14:16:49 EDT
AnnotationsProcessor will now recognize com.sun.xml.bind.annotation.XmlLocation and com.sun.xml.internal.bind.annotation.XmlLocation.
Comment 19 Eclipse Webmaster CLA 2022-06-09 10:05:13 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink