gnodet commented on PR #1516:
URL: https://github.com/apache/cxf/pull/1516#issuecomment-4039045002

   Closing this PR — the root cause has been identified and fixed in #2945.
   
   The non-deterministic serialization order is caused by CXF's own 
`Utils.java` using `HashSet` to collect bean properties from reflection. 
`HashSet` has non-deterministic iteration order, so when `@XmlType(propOrder)` 
is not specified, serialized XML element order varies between runs. The fix 
switches to `LinkedHashSet` to preserve insertion order.
   
   Adding `propOrder` to the test beans was a valid workaround, but the proper 
fix is in the serialization infrastructure itself.
   
   Thanks @prathyushreddylpr for identifying the issue!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to