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

Bug 363523

Summary: incorrect exception generating a schema if field is transient and property is annotated
Product: z_Archived Reporter: Karen Butzke <karenfbutzke>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: blaise.doughan, rick.barkhouse
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch - code changes - 2.3 none

Description Karen Butzke CLA 2011-11-10 14:37:40 EST
Generating an xml schema with the following class causes an incorrect exception:
Exception Description: The property or field shipTo is annotated to be transient so can not be included in the proporder annotation.


@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PurchaseOrderType", propOrder = {
    "shipTo",
    "billTo"
})
public class PurchaseOrder {

    @XmlTransient
    protected USAddress shipTo;

    @XmlElement(required = true)
    protected USAddress billTo;


    @XmlElement(name="shipTo", required = true)
    public USAddress getShipTo() {
        return shipTo;
    }
    public void setShipTo(USAddress value) {
        this.shipTo = value;
    }
}
Comment 1 Rick Barkhouse CLA 2012-03-20 13:40:15 EDT
Created attachment 212936 [details]
Patch - code changes - 2.3
Comment 2 Rick Barkhouse CLA 2012-03-20 15:57:01 EDT

*** This bug has been marked as a duplicate of bug 365614 ***
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:20:45 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink