-
Bug
-
Resolution: Done
-
Major
-
2.0.0.Final, 2.1.0.Final, 2.2.0.CR5, 3.0.0.Alpha3
-
None
This in marshalAttributes results in iterating over a reversed list:
//we sort attributes to make sure that attributes that marshall to elements are last for (AttributeDefinition ad : attributes.stream().sorted((o1, o2) -> o1.getParser().isParseAsElement() ? 1 : -1).collect(Collectors.toList())) {
The sorter returning -1 for all non-element attributes has that effect.