gnodet opened a new pull request, #13825: URL: https://github.com/apache/maven/pull/13825
Backport of #13770 to `maven-4.0.x`. Cherry-pick of eddb661cf3cc6201448fc604df18c915690b95b4 applied cleanly (main code). Test required adaptation: replaced `assertTrue(condition, message)` with AssertJ `assertThat(message).contains(...)` to match the assertion style on `maven-4.0.x`. **Changes:** - Map injection collected bindings with `Collectors.toMap` without a merge function, so duplicate `@Named` qualifiers surfaced as the JDK's raw "Duplicate key" error with lambda identities - Now collects bindings first and throws a `DIException` that names the duplicate key and both binding origins - Adds a regression test covering duplicate `@Named` bindings for a `Map<String, T>` injection point Fixes #13752. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
