| Summary: | Can't generate a schema if using a factory method and no zero-arg constructor | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 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: | david.mccann | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
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 |
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; }