gnodet opened a new pull request, #2425: URL: https://github.com/apache/maven/pull/2425
When injecting List<T> dependencies, the DI container now sorts the bindings by their @Priority annotation value in descending order (highest priority first) to ensure deterministic ordering. This change ensures that components with higher priority values appear first in injected lists, providing predictable behavior for dependency injection scenarios where order matters. - Modified InjectorImpl.doGetCompiledBinding() to sort bindings by priority before creating supplier lists - Added comprehensive tests for priority-based list ordering - Includes tests for mixed priorities and default priority handling JIRA issue: [MNG-8764](https://issues.apache.org/jira/browse/MNG-8764) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org