SpringSource/spring-framework — pull request #304 by antonio-marrero (2013-06-24 15:45:04+00:00)
Title: SPR-10550 - Assign lowest priority to "/**" in AntPathMatcher

Normally the pattern "/**" is used to handle the requests that don't match any of the other Servlet requests, therefore its priority should be the lowest.
This is a problem when there is a URI pattern with 3 or more PathVariable (i.e "/matches/{matchId}/periods/{periodId}/teams/{teamId}/results") then the default URI ("/**") takes precedence because the method compare is giving higher priority to the patterns with less brackets "{}" and wildcards "*".
Issue fixed adding a special treatment like the one null has.

Issue:SPR-10550