Skip to content
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

Coercion from element-with-attribute-and-text only works for String not other scalar types #412

Closed
cowtowncoder opened this issue Jun 7, 2020 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

Handling of text (String) valued properties works for content like:

<Root>
   <stringValue attribute="xyz">value</stringValue>
</Root>

to type like

public class Root {
   public String value;
}

(after fixes like #390)

but same is not true for other scalar types; as an example, int type fails.
This because there is special XmlStringDeserializer that handles details of handling special cases.

But it would make sense to make this work at least for int and long -- and others in future, too.

cowtowncoder added a commit that referenced this issue Jun 7, 2020
@cowtowncoder cowtowncoder added this to the 2.12.0 milestone Jun 30, 2020
@cowtowncoder cowtowncoder changed the title Coercion from element-with-attribute-and-text only works for String, not int Coercion from element-with-attribute-and-text only works for String not other scalar types Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant