Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363523 - incorrect exception generating a schema if field is transient and property is annotated
Summary: incorrect exception generating a schema if field is transient and property is...
Status: CLOSED DUPLICATE of bug 365614
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-10 14:37 EST by Karen Butzke CLA
Modified: 2022-06-09 10:20 EDT (History)
2 users (show)

See Also:


Attachments
Patch - code changes - 2.3 (3.61 KB, patch)
2012-03-20 13:40 EDT, Rick Barkhouse CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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