| Summary: | Insecure behavior of <xml-transient/> vs @XmlTransient | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Xyan Kruse <xyan> | ||||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | minor | ||||||||
| Priority: | P3 | CC: | blaise.doughan, denise.mahar, eclipselink.oxm-inbox | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Xyan Kruse
http://dev.eclipse.org/svnroot/rt/org.eclipse.persistence/trunk/moxy/org.eclipse.persistence.moxy/src/org/eclipse/persistence/jaxb/compiler/XMLProcessor.java Index: XMLProcessor.java =================================================================== --- XMLProcessor.java (Revision 9398) +++ XMLProcessor.java (Arbeitskopie) @@ -453,6 +453,10 @@ } processJavaAttribute(typeInfo, javaAttribute, propToProcess, nsInfo, javaType); + // (Bug 346081) if discover an transient attribute apply same behavior as transient annotation and remove + if(propToProcess.isTransient()){ + typeInfo.getPropertyList().remove(propToProcess); + } // if we are dealing with multiple mappings for the same attribute, leave the existing // property as-is and update the additionalProperties list on the owning TypeInfo Created attachment 195868 [details]
Possible solution
Created attachment 196115 [details]
Patch as proposed plus test case
Fixed to remove the property from the list of properties if it is transient as proposed. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |