-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
Jackson fails to read XML file it writes based on JAXB annotations #362
Comments
@rpatrick00 General idea is indeed that Jackson should read content it writes, at minimum. What would be necessary here however is definition of Java classes, and code invoked, ideally simplified as much as possible to reproduce the problem. |
@cowtowncoder, the github project I pointed you to is a VERY simple reproducer that has been stripped down to the essentials needed to reproduce the problem. There was no way for me to attach the project to the issue so I just pointed you at it. Is there a better way to do this? |
@rpatrick00 Sorry, my bad. Read this too quickly and missed the link. Thank you for providing the repro project. |
I was able to reproduce the issue against Jackson 2.6.3, but not with So I think this has been fixed now. |
I have a simple test at https://github.com/rpatrick00/jackson-polymorphic-test where I am trying to use polymorphic types using JAXB annotations. The code works fine with straight JAXB but Jackson 2.6.3 is failing to read the file that it wrote. The file that Jackson with JAXB annotations wrote looks like this:
When trying to use Jackson to read the file back in, it fails with the following:
Maybe I am just doing something stupid but it seems like Jackson should be able to read a file that it generated.
The text was updated successfully, but these errors were encountered: