| Summary: | schema gen for XmlAccessType.PROPERTY does not include annotated fields | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Karen Butzke <karenfbutzke> | ||||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | blaise.doughan, matt.macivor | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 189729 [details]
Code to demonstrate the issue
Created attachment 191341 [details]
propsed fix and tests
Attached patch checked in to SVN Reviewed by Blaise Doughan The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
Using the following class I generated a schema using MOXy and the fields 'aPrivateField' and 'aPublicField' were not generated into the schema even though they are annotated fields. package test.propertyaccess; @XmlType @XmlAccessorType(XmlAccessType.PROPERTY) public class A { @XmlAttribute private int aPrivateField; @XmlAttribute public String aPublicField; public String getAPublicProperty() { return null; } public void setAPublicProperty(String name) { } private String getAPrivateProperty() { return null; } private void setAPrivateProperty(String name) { } }