Schemagen.exe creates reversed schema-content
After having created a small set of JAXB-annotated classes I am perfectly able to have my classes marshalled and unmarshalle to and from XML using JAXB.
As I want to have schema-validation applied when doing unmarshalling I created an XML-schema for the classes using the schemagen.exe executable in the JDK 1.6.0_10 distribution.
In the resulting XML-schema all XML-sequences contains data in the exact opposite ordering, compared to how JAXB is marshalling the content. Thus, I cannot use the produced schema for validation, unless I manually reverse the content of every XML-sequence found in it. I have a hard time believing that this is a true bug, but I am also completely blank on what to do with the problem.
Can anybody verify this as a bug?