Description
Current Behavior
The specification states in 160.1.4 that Handler services are ordered according to the "natural order" of the services, i.e. that higher ranked services are run earlier, and services with equal ranking run in ascending order of service id.
This is not honoured in the specification. If two services have equal ranking then the order that they run in is undefined, also if they are ranked then they appear in the correct order in the DTO, but are run in the reverse order in the handler chain.
Expected Behavior
Handler services should use the natural order of services for ordering (e.g. by using compareTo
on the service reference) so that they order correctly when they have the same rank. This order should then be honoured in the DTO and the handler chain.
Steps To Reproduce
No response
Version
latest snapshot
Are you interested in contributing a solution yourself?
None
Anything else?
No response