Hi, Ihar Tsimoshka wrote:
> OK. As I understood Xstream doesn't support any way to get custom field > order > except FieldKeySorter. I looked for way like 'propOrder' in jaxb. > Implement FieldKeySorter for every handled class is to expensive. Why? Do as I suggested and implement one FieldKeySorter that looks for an annotation that defines this order. If no annotation is present, just return the provided Map. That's just like JAXB then. > But I > still think that sentence 'They will write the fields of a class in the > sequence they are defined' is misleading All compiler/run-time combinations in the last 10 years provided the fields either in declaration order or reverse declaration order ... :-/ Cheers, Jörg --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email