<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mlarchet" rel="nofollow">Mathieu Larchet</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-1718?redirect=false" rel="nofollow">SPR-1718</a></strong> and commented</p>
<p dir="auto">When configuring a PropertyPlaceHolderConfigurer for external property file, ${xxx} parsing fail for abstract beans.</p>
<p dir="auto">&lt;bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;<br>
&lt;property name="location"&gt;<br>
&lt;value&gt;/WEB-INF/classes/properties/config.properties&lt;/value&gt;<br>
&lt;/property&gt;<br>
&lt;/bean&gt;<br>
&lt;bean id="test1" class="myproject.Test"&gt;<br>
&lt;property name="name"&gt;&lt;value&gt;${name}&lt;/value&gt;&lt;/property&gt;      &lt;---- Ok it works fine<br>
&lt;/bean&gt;<br>
&lt;bean id="template" abstract="true"&gt;<br>
&lt;property name="test"&gt;&lt;ref bean="test1" /&gt;&lt;/property&gt;<br>
&lt;/bean&gt;<br>
&lt;bean id="concrete" class="myproject.Foo" parent="template"&gt;<br>
&lt;property name="mail"&gt;&lt;value&gt;${mail}&lt;/value&gt;&lt;/property&gt;              &lt;---- Error property 'mail' is set to value '${mail}' instead of '<a href="mailto:myaddress@mydomain.com">myaddress@mydomain.com</a>'<br>
&lt;/bean&gt;</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0 M2</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="398063801" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6438" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6438/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6438">#6438</a> ${..} property placeholder broken in 2-m2, was working on 2-m1 (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398063618" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6416" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6416/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6416">#6416</a> PropertyPlaceholderConfigurer behaves differently in 2.0M2 than in 1.2.6.  Some properties are not replaced. (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=radim.tlusty" rel="nofollow">Radim Tlusty</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6379?redirect=false" rel="nofollow">SPR-6379</a></strong> and commented</p>
<p dir="auto">it's probably related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398095085" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10432" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10432/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10432">#10432</a>.</p>
<p dir="auto">I think, that the issue is in DefaultBeanDefinitionDocumentReader class. In 3.0.0.RC1 there was used call 'ResourcePatternUtils.isUrl(location)', in 3.0.0.RC2 it's changed and I think, that it's related to this correction.</p>
<p dir="auto">When the classes are unpacked, it leads to transformation of classpath* URL to file URL, which causes the problem.</p>
<p dir="auto">Attach is simple test case, which works in 3.0.0.RC1, but fail on 3.0.0.RC2.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 RC2</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/15933/SPR-5762.ZIP" rel="nofollow">SPR-5762.ZIP</a> (<em>2.78 kB</em>)</li>
</ul>
<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="398099258" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11032" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11032/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11032">#11032</a> Cannot import bean definitions using classpath*: resource location (<em><strong>"duplicates"</strong></em>)</li>
</ul>