Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Failed to use @XStreamConverter to specify converter with non-default constructor and pass equal values into constructor #35
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
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.