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

Failed to use @XStreamConverter to specify converter with non-default constructor and pass equal values into constructor #35

Closed
emamedov opened this issue Jan 13, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@emamedov
Copy link

Hi.

XStream: 1.4.8

I faced issue that is described here (http://stackoverflow.com/questions/27926281/is-it-possible-to-use-namedmapconverter-in-annotation-how). We can't use @XStreamConverter annotation to specify converter if it has non-default constructor and we want to pass into this constructor equal values for some arguments (for example, NamedMapConverter with keyAsAttribute=true and valueAsAttribute=true). Proposed in stackoverflow workaround works but it is not a good solution

@joehni
Copy link
Member

joehni commented Jan 15, 2016

Hi, I know there was a reason for the comparison, but I don't remember. I'll have to investigate. Basically the original poster is right, that it fails badly for two equal values, especially if you have to provide multiple booleans.

It would have helped though, if the OP made request here or asked at XStream's mailing list one year ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants