Community
Participate
Working Groups
With the following class I get a validation error on the propOrder element of XmlType. the 'shipTo' field is transient because the shipTo property is instead annotated. "The property 'shipTo' is transient and should not be included in the property order." @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; } }
Created attachment 207036 [details] proposed patch changed validation algorithm to detect if an attribute name has a non-transient mapping rather than just checking if it has a transient mapping.
fixed for 3.1 rc2
Verified in Build S-3.1.0-20111117042513 Verified when you create the class above, that no error appears stating - "The property 'shipTo' is transient and should not be included in the property order." See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.1_RC2