Community
Participate
Working Groups
Created attachment 184819 [details] NoSuchMethodException stack trace I am using the nightly build .v20101208-r8654. I am attempting to generate a schema using MOXY for the following class with a factory method and no zero-argument constructor. I get the attached exception when EclipseLink attempts to use the zero-arg constructor. @XmlType(factoryMethod="buildEmployee") public class Employee { private Employee(String name) { super(); this.name = name; } public static Employee buildEmployee() { return new Employee("John"); } private String name; }
Created attachment 184882 [details] Proposed fix
Created attachment 184884 [details] Supporting tests
Reviewed by: matt.macivor@oracle.com Tests: all unit tests pass as expected; jaxb/xmltype/XmlTypeTestCases
Revision: 8678
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink