Details
Description
JAX-RS 1.1 Selection algorithm does not say what needs to be done when 2 URI templates are equal after 3 checks (number of 1. literals, 2. vars & 3. custom vars) are done. CXF assumes both are equal candidates, Jersey finishes with the string comparison.
Note, this 4th step (string comparison) does not make sense in all but few cases where only custom regular expressions are involved due to the fact that steps 1-3 are sufficient in most cases and when it needs to be done we are at the stage where the choice between 2 candidates is completely random... For the interop & portability purposes, it makes sense to add a string comparison...JAX-RS 2.0 requesting the clarification in the spec is to be created too.