Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355766 - Add support equivalent to JAXB RI's @XmlLocation
Summary: Add support equivalent to JAXB RI's @XmlLocation
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Rick Barkhouse CLA
QA Contact:
URL: http://wiki.eclipse.org/EclipseLink/D...
Whiteboard:
Keywords:
Depends on:
Blocks: 359251
  Show dependency tree
 
Reported: 2011-08-24 17:08 EDT by Rick Barkhouse CLA
Modified: 2022-06-09 10:05 EDT (History)
1 user (show)

See Also:


Attachments
Patch - test cases (29.30 KB, patch)
2011-10-05 13:41 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch - code changes (83.20 KB, patch)
2011-10-05 13:42 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch - test cases (29.97 KB, patch)
2011-10-06 10:15 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch - code changes (85.48 KB, patch)
2011-10-06 10:16 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch - test cases (31.49 KB, patch)
2011-10-06 13:06 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch - code changes (85.24 KB, patch)
2011-10-06 13:06 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch - test cases (46.03 KB, patch)
2011-10-19 16:04 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch - code changes (97.41 KB, patch)
2011-10-19 16:05 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch - code changes (97.41 KB, patch)
2011-10-20 12:00 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch - test changes (49.68 KB, patch)
2011-10-20 12:00 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch - test changes (49.68 KB, patch)
2011-10-21 10:30 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch - code changes (89.42 KB, patch)
2011-10-21 10:30 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch - code changes (89.47 KB, patch)
2011-10-24 12:17 EDT, Rick Barkhouse CLA
no flags Details | Diff
Additional Patch to support Sun annotation (8.30 KB, patch)
2012-05-10 14:11 EDT, Rick Barkhouse CLA
no flags Details | Diff

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