liufeiyu1002 commented on issue #10335:
URL: https://github.com/apache/dubbo/issues/10335#issuecomment-1193320383

   > 
BCD三个类在注入依赖bean的时候,因为这三的属性名称一样且类型不一样(会走入你前面截图的逻辑里),按理注入的beanName应该分别为userInfo、userInfo#2、userInfo#3。我理解应该不会出现你所描述的
 `beanDefinitionRegistry没有找到已经注册的bean`,我本地试了下没有问题,方便的话可以发一下你的demo我本地复现一下。
   所以在此处
   
![image](https://user-images.githubusercontent.com/32605119/180649503-18781c85-92e8-4dd7-bce0-8e2b28e6ce0e.png)
   对newReferenceBeanName的要求应该是 没有被注册到 beanDefinitionRegistry中 且 
别名中也没注册过当前名称,在生成新的newReferenceBeanName名称时 应该二次检查之前是否已经使用当前名称注册过,避免重复的注入多个别名
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to