jaxb2-commons icon indicating copy to clipboard operation
jaxb2-commons copied to clipboard

Add generated constructors as methods to the ObjectFactory

Open glassfishrobot opened this issue 10 years ago • 3 comments

XJC generated code looks fine:

{code;java}

public Property(final String value, final String name, final String locale)

{ this.value = value; this.name = name; this.locale = locale; }``` but the {{ObjectFactory}} still has only this:

{code:java} /** * Create an instance of {@link Property } * */ public Property createProperty() { return new Property(); }


It would be nice if the factory would have both methods, one for empty ctor and one for arg ctor.
#### Affected Versions
[current]

glassfishrobot avatar Jul 03 '14 09:07 glassfishrobot

Reported by michael-o

glassfishrobot avatar Jul 03 '14 09:07 glassfishrobot

Was assigned to super_glassfish

glassfishrobot avatar Jul 03 '14 09:07 glassfishrobot

This issue was imported from java.net JIRA JAXB2_COMMONS-35

glassfishrobot avatar Apr 25 '17 07:04 glassfishrobot