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
compatibility issue with JAXB 2.0 #488
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented My previous diagnosis of polymorphic vs monomorphic was incorrect. As noted in It looks like JAXB is calling the the getter even when unmarshalling XML into private List bars; @XmlElementWrapper { return new ArrayList(bars); } We can work around this – w/out losing the ability to hide the real collection @XmlElementWrapper(name="bars") { return bars; } ...and removing the xml annotations from the public getBars method. Even though we can work around the problem, i think the change from 2.0.x to In case the above was not clear, i'll attach another example in a minute. |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented your workaround won't break - I've only added set invocation after parsing whole So whole process starts with invoking get and "clearing" result (as previously) Pavel |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
The attached test case works with JAXB 2.0, for example with JDK 6 update 1.
The test case is broken when running with JDK 6 update 4 (JAXB 2.1).
see also forum entry:
http://forums.java.net/jive/thread.jspa?threadID=36902&tstart=75
Environment
Operating System: All
Platform: All
Affected Versions
[2.1.1]
The text was updated successfully, but these errors were encountered: