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

Bug 336388

Summary: Context model support for @XmlTransient on a class
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: JAXBAssignee: Karen Butzke <karenfbutzke>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: neil.hauge
Version: 3.0   
Target Milestone: 3.0 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 336393    

Description Karen Butzke CLA 2011-02-04 14:01:21 EST
We need to support @XmlTransient on a class so that we can correctly support validation for @XmlValue. If an @XmlValue attribute mapping exists on a class, the class cannot extend another XML-bound type.
Comment 1 Karen Butzke CLA 2011-02-28 10:42:29 EST
Added support for XmlTransient and inherited attributes on an XmlType that extends an XmlTransient. This support might change after getting some feedback from Blaise and the JAXB reference implementation developers.
Comment 2 Karen Butzke CLA 2011-03-11 10:27:31 EST
Blaise's feedback has confirmed that my implementation is correct:

We have looked at bug 336975 further and realize that is a MOXy bug and not a spec issue.  When a XmlAccessorType is specified on a super type, it should be inherited by the sub types that have not set there own XmlAccessType.

I am still not 100% convinced that according to the spec that @XmlAccessType and @XmlTransient are technically compatible, but we will try to have the same behaviour as the RI on this point.

-Blaise