Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Add generated constructors as methods to the ObjectFactory #35

Open
glassfishrobot opened this issue Jul 3, 2014 · 3 comments
Open

Comments

@glassfishrobot
Copy link
Contributor

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
Copy link
Contributor Author

Reported by michael-o

@glassfishrobot
Copy link
Contributor Author

Was assigned to super_glassfish

@glassfishrobot
Copy link
Contributor Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant