Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337722

Summary: schema gen for XmlAccessType.FIELD does not include annotated properties
Product: z_Archived Reporter: Karen Butzke <karenfbutzke>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matt.macivor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Karen Butzke CLA 2011-02-21 09:26:44 EST
Using the following class I generated a schema using MOXy and the properties 'APublicProperty' and 'APrivateProperty' were not generated into the schema even though they are annotated properties. 

package test.fieldaccess;

@XmlType
@XmlAccessorType(XmlAccessType.FIELD)
public class A {

	private int aPrivateField;

	public String aPublicField;

	@XmlAttribute
	public String getAPublicProperty() {
		return null;
	}
	public void setAPublicProperty(String name) {
		
	}
	
	@XmlAttribute
	private String getAPrivateProperty() {
		return null;
	}
	private void setAPrivateProperty(String name) {
		
	}
}
Comment 1 Matt MacIvor CLA 2011-03-21 10:31:46 EDT
Fix for this bug has been submitted as part of the fix for bug 337721

That fix was reviewed by Blaise Doughan.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:29:58 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink