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

Bug 346461

Summary: Can't override a property level transient annotation in bindings file
Product: z_Archived Reporter: Denise Smith <denise.mahar>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Proposed changes and test updates none

Description Denise Smith CLA 2011-05-19 10:49:21 EDT
If a property is marked transient with annotations ie:
    @XmlTransient
    public String phoneNumber; 

the if the following is in the bindings file 
<java-attributes>
    <xml-element java-attribute='phoneNumber'/>

phoneNumber should be non-transient.
Comment 1 Denise Smith CLA 2011-05-19 11:47:49 EDT
Created attachment 196132 [details]
Proposed changes and test updates
Comment 2 Denise Smith CLA 2011-05-19 13:14:51 EDT
Fixed to handle the described case.  Now in AnnotationsProcessor we build properties and mark them transient (so they are available to XMLProcessor to override if needed) instead of non building them.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:23:59 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink