<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=auke" rel="nofollow">Auke van Leeuwen</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8805?redirect=false" rel="nofollow">SPR-8805</a></strong> and commented</p>
<p dir="auto">There is a small typo in the one of the code samples in the Cache Abstraction documentation: <a href="http://static.springsource.org/spring/docs/3.1.0.M1/spring-framework-reference/html/cache.html" rel="nofollow">http://static.springsource.org/spring/docs/3.1.0.M1/spring-framework-reference/html/cache.html</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;bean id=&quot;cacheManager&quot; class=&quot;org.springframework.cache.ehcache.EhcacheCacheManager&quot; p:cache-manager=&quot;ehcache&quot;/&gt;

&lt;!-- Ehcache library setup --&gt;
&lt;bean id=&quot;ehcache&quot; class=&quot;org.springframework.cache.ehcache.EhCacheManagerFactoryBean&quot; p:config-location=&quot;ehcache.xml&quot;/&gt;"><pre class="notranslate"><code class="notranslate">&lt;bean id="cacheManager" class="org.springframework.cache.ehcache.EhcacheCacheManager" p:cache-manager="ehcache"/&gt;

&lt;!-- Ehcache library setup --&gt;
&lt;bean id="ehcache" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" p:config-location="ehcache.xml"/&gt;
</code></pre></div>
<p dir="auto">Instead of <code class="notranslate">org.springframework.cache.ehcache.EhcacheCacheManager</code> it's actually: <code class="notranslate">org.springframework.cache.ehcache.Eh{*}C{*}acheCacheManager</code>. Just a small typo but it will of course not start your spring-context if you copy-paste it.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 RC1</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="398114177" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13277" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13277/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13277">#13277</a> Use lowercase 'c' in 'Ehcache' consistently (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=ylazzari" rel="nofollow">Yannick Lazzari</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9100?redirect=false" rel="nofollow">SPR-9100</a></strong> and commented</p>
<p dir="auto">There seems to be a difference in the way configuration classes, i.e. classes annotated with <code class="notranslate">@Configuration</code>, are handled by the ClassPathBeanDefinitionScanner vs the AnnotatedBeanDefinitionReader.  The javadoc says that the AnnotatedBeanDefinitionReader is, "...an alternative to ClassPathBeanDefinitionScanner, applying the same resolution of annotations but for explicitly registered classes only.".  If you read the Spring forum thread attached to this issue report, you will find an example that shows that the way <code class="notranslate">@ComponentScan</code> excludeFilters are processed is not the same; actually, they seemed to be totally ignored when the ClassPathBeanDefinitionScanner scans a class annotated in the following manner:</p>
<p dir="auto"><code class="notranslate">@Configuration</code><br>
<code class="notranslate">@ComponentScan</code>(basePackages={"com.foo", "com.bar"}, excludeFilters={<code class="notranslate">@ComponentScan</code>.Filter(type = FilterType.ASSIGNABLE_TYPE, value = com.foo.ComponentA.class)})<br>
public class TestConfig {<br>
}</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 GA</p>
<p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?122907-Spring-3-1-AnnotationConfigWebApplicationContext-scan-vs-register-method&amp;p=400832" rel="nofollow">http://forum.springsource.org/showthread.php?122907-Spring-3-1-AnnotationConfigWebApplicationContext-scan-vs-register-method&amp;p=400832</a></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="398116710" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13670" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13670/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13670">#13670</a> <code class="notranslate">@ComponentScan</code> with includeFilters on <code class="notranslate">@Import-ed</code> context does not work (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398110272" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12634" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12634/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12634">#12634</a> <code class="notranslate">@ComponentScan</code> does not work when referenced from XML config</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398114714" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13361" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13361/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13361">#13361</a> <code class="notranslate">@ComponentScan</code>(includeFilters=<code class="notranslate">@Filter</code>(...)) fails when <code class="notranslate">@Import</code>'ed</li>
</ul>