<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.6</li>
<li>Operating System version: xxx</li>
<li>Java version: 1.8</li>
</ul>
<p dir="auto">dubbo 2.7.6 版本和之后的版本，当使用 <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/reference/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/reference">@reference</a> 注解修改 cluster 属性切换集群容错策略时，发现始终不生效，一直使用默认的 failover 策略。当使用 2.7.5 版本时，修改生效。</p>
<p dir="auto">看了一下 RegistryDirectory.getUrl 方法的代码，发现从 2.7.6 版本开始，getUrl 返回的 url 为 RegistryDirectory 构造函数中传入的 url，在 2.7.5 版本中 getUrl 方法返回的是 overrideDirectoryUrl。overrideDirectoryUrl 中包含了用户设置的参数，而 url 中没有，导致无法切换集群容错策略。</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.3</li>
<li>Operating System version: ubuntu 18.04</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">it's a suggestion, the method "org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor#getInjectedObject" is a protected method, but attr "injectedObjectsCache" is private. so when i override the method, it's very difficult, there are lots of modifitions. so can the attr be protected?</p>