Community
Participate
Working Groups
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) { } }
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