-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generateIsSetMethod generates dangerous boolean code #253
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented
|
@glassfishrobot Commented The bug here is when the extension 'generateIsSetMethod' is used, it turns on The problem with this is - when generateIsSetMethod is used - is that there is |
@glassfishrobot Commented Fixing this requires update to the spec itself. I'll mark 667 as a duplicate of |
@glassfishrobot Commented
|
@glassfishrobot Commented |
|
@lukasj Regards, |
xjc generates code that does not properly autobox when 'generateIsSetMethod' is
used. I reported this for integers as issue 667, but that could be worked around
with an isSet method. However, booleans do not get an isSet method!
Generated code:
@XmlAttribute(name = "includeChildren")
protected Boolean includeChildren;
With generateIsSetMethod:
public boolean isIncludeChildren()
{ return includeChildren; }
Without:
public Boolean isIncludeChildren() { return includeChildren; }
Environment
Operating System: All
Platform: All
Affected Versions
[2.1.12]
The text was updated successfully, but these errors were encountered: