<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=peter.backlund" rel="nofollow">Peter Backlund</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2679?redirect=false" rel="nofollow">SPR-2679</a></strong> and commented</p>
<hr>
<p dir="auto">No further details from <a href="https://jira.spring.io/browse/SPR-2679?redirect=false" rel="nofollow">SPR-2679</a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=rstoya05-aop" rel="nofollow">Rossen Stoyanchev</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9638?redirect=false" rel="nofollow">SPR-9638</a></strong> and commented</p>
<p dir="auto">When one bean tries to find the type of another, via <code class="notranslate">BeanFactory.getType(String)</code>, from an initialization method (e.g. <code class="notranslate">InitializingBean</code>), and when the target bean type is expected to be a JDK dynamic proxy, the actual type returned varies depending on whether the target bean is declared before or after the bean interrogating its type.</p>
<p dir="auto">This is the mechanism used in Spring MVC to discover and cache <code class="notranslate">@RequestMapping</code> methods to invoke. Hence it's necessary to the presence of JDK proxies.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.2</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398151851" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14236" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14236/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14236">#14236</a> BeanFactory.getType() can return inaccurate (non-proxied) type when using AOP (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto">2 votes, 6 watchers</p>