- 
                Notifications
    You must be signed in to change notification settings 
- Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug
Milestone
Description
Andy Wilkinson opened SPR-15991 and commented
This change has introduced a regression which means that HandlerMapping beans are no longer ordered. Currently, this.handlerMappings is being sorted:
ArrayList<HandlerMapping> mappings = new ArrayList<>(mappingBeans.values());
AnnotationAwareOrderComparator.sort(this.handlerMappings);
this.handlerMappings = Collections.unmodifiableList(mappings);I believe it should be mappings that is sorted:
ArrayList<HandlerMapping> mappings = new ArrayList<>(mappingBeans.values());
AnnotationAwareOrderComparator.sort(mappings);
this.handlerMappings = Collections.unmodifiableList(mappings);Affects: 5.0 GA
Issue Links:
- Provide an API for introspection of handler mappings [SPR-15934] #20488 Provide an API for introspection of handler mappings
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug