This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new 0c7e73335d Fix broken circular references detection
0c7e73335d is described below
commit 0c7e73335d1fe85a0a3f2c80f8f3ffd36f6326e3
Author: Guillaume Nodet <[email protected]>
AuthorDate: Tue Sep 10 21:22:47 2024 +0200
Fix broken circular references detection
---
maven-di/src/main/java/org/apache/maven/di/impl/InjectorImpl.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/maven-di/src/main/java/org/apache/maven/di/impl/InjectorImpl.java
b/maven-di/src/main/java/org/apache/maven/di/impl/InjectorImpl.java
index de55ca2f2b..143f52102e 100644
--- a/maven-di/src/main/java/org/apache/maven/di/impl/InjectorImpl.java
+++ b/maven-di/src/main/java/org/apache/maven/di/impl/InjectorImpl.java
@@ -144,10 +144,9 @@ public class InjectorImpl implements Injector {
doBindImplicit(key, binding);
Class<?> cls = key.getRawType().getSuperclass();
while (cls != Object.class && cls != null) {
- key = Key.of(cls, key.getQualifier());
- doBindImplicit(key, binding);
+ doBindImplicit(Key.of(cls, key.getQualifier()), binding);
if (key.getQualifier() != null) {
- bind(Key.ofType(key.getType()), binding);
+ bind(Key.ofType(cls), binding);
}
cls = cls.getSuperclass();
}