Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336388 - Context model support for @XmlTransient on a class
Summary: Context model support for @XmlTransient on a class
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JAXB (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 336393
  Show dependency tree
 
Reported: 2011-02-04 14:01 EST by Karen Butzke CLA
Modified: 2011-03-11 10:27 EST (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 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