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

Bug 345316

Summary: Model and validation support for XmlJavaTypeAdapter
Product: [WebTools] Dali JPA Tools Reporter: Paul Fullbright <paul.fullbright>
Component: JAXBAssignee: Paul Fullbright <paul.fullbright>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: neil.hauge
Version: 3.0Keywords: plan
Target Milestone: 3.1 M3   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

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