apache / apache/dubbo

升级版本后原先扩展Filter的代码,setter注入的属性为空

Open
#10,780 4 comments 0 reactions 1 assignee Claimed by @samyScott View on GitHub
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

对比了一下dubbo版本代码后发现SpringExtensionInjector
![image](https://user-images.githubusercontent.com/4637107/197145006-6906fcc5-4e03-4ed2-931e-b023760a7cb3.png)
原先代码是先根据name查询bean,查不到再根据类型type去查找,但是新版的只要name不为空就不会根据type去查即便查不到,比如我们这个原先代码
![image](https://user-images.githubusercontent.com/4637107/197145415-d78f340d-4525-4fef-a68c-50e908f9efa4.png)
注入了applicationConfig和providerConfig,根据applicationConfig查不到因为我们配置了dubbo.application.name项目名,所以注入的属性为空,执行createRouter时候这里代码就会报空指针。这里想兼容升级的话怎么弄好

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.