mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-01 19:09:08 +00:00
Invoking AnnotationAwareOrderComparator#sort while the AuthorizationAdvisors are still being computed causes those advisors to be eagerly instantiated, making components like ObservationRegistry ineligible for post processing. This commit defers the sorting of the advisors until after they are all fully instantiated and available in the application context. Closes gh-15658