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
Disabled fields and multiple-inherence (override once => override for sub-classes) #871
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented
Steps to reproduce:
The difference will be on the response to the SampleService#op2 method call from which ns2:date field disappears:
Environment:
|
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented
The reason for the JDK 7 question is because we have recently converted project from Java 6 to Java 7 and now we hit this bug. For us it is a blocker for a delivery of our product. |
@glassfishrobot Commented |
|
I've been running with an issue caused by the checkOverrideProperties() method which has been added in JAXB 2.2, so I've only been running with this issue since I upgraded the JAXB library in my application..
I'll just give an example, and I think this should be understandable.
Here is my model:
Here is the instance of my model:
Using JAXB 2.2.4 or 2.2.4-1 to marhsall the objects, I get the following XML :
As you can see the child2 element minus the element1 subitem. This is because the child1 inherence disabled element1 in parent. Disabling it for child1 is okay, but I don't think it should be disabled for child2 as well.
The easiest workaround is to avoid any override in the java model.
Thank you for your interest.
Affected Versions
[2.2.4, 2.2.4u1]
The text was updated successfully, but these errors were encountered: