We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
QName (de)serialization ignores prefix, because it uses QName#toString() and QName#valueOf(java.lang.String).
2.17.2
QName qname = new QName("http://test.com", "test", "p"); System.out.println(qname.getPrefix()); // <- p ObjectMapper mapper = new ObjectMapper(); String ser = mapper.writeValueAsString(writer, qname); System.out.println(ser); // <- "{http://test.com}test" QName result = mapper.readValue(ser, QName.class); System.out.println(result.getPrefix()); // <- empty string
QName prefix is preserved.
No response
The text was updated successfully, but these errors were encountered:
Thank you for reporting this @jpraet.
I can see the problem, but it'll probably be difficult to resolve in a backwards-compatible way.
PRs welcome.
Sorry, something went wrong.
No branches or pull requests
Search before asking
Describe the bug
QName (de)serialization ignores prefix, because it uses QName#toString() and QName#valueOf(java.lang.String).
Version Information
2.17.2
Reproduction
Expected behavior
QName prefix is preserved.
Additional context
No response
The text was updated successfully, but these errors were encountered: