Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345316 - Model and validation support for XmlJavaTypeAdapter
Summary: Model and validation support for XmlJavaTypeAdapter
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JAXB (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: 3.1 M3   Edit
Assignee: Paul Fullbright CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2011-05-10 14:43 EDT by Paul Fullbright CLA
Modified: 2011-10-13 11:49 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Fullbright CLA 2011-05-10 14:43:20 EDT
(Post-3.0 tracking)

XmlJavaTypeAdapter needs more and better model support.
Comment 1 Paul Fullbright CLA 2011-06-06 14:33:41 EDT
In particular, it is important to note that an XmlAdapter transforms the type of the java attribute from its declared type to a type determined by the adapter implementation.  Much validation of other annotations depends on this attribute type being interpreted correctly.
Comment 2 Paul Fullbright CLA 2011-10-13 11:49:38 EDT
Added support for adapting attributes whether the annotation is on:
- the attribute itself
- the class to be adapted
- the package containing the attribute
- the package containing the class to be adapted

Validation proved trickier.  We added the adapted-*to* type to the JAXB context, and that applies default mapping information, so any validation of *that* type will be performed.  But pretty much any type will automatically be mapped, so beyond that, there's not much to be done.

Support added for 3.1 M3