accepts description subelement within map entry as well (as per the XSD; SPR-8563)

This commit is contained in:
Juergen Hoeller
2011-07-28 11:14:26 +00:00
parent 79aa661dd6
commit c0257aba9b
2 changed files with 18 additions and 3 deletions

View File

@@ -155,6 +155,18 @@
</property>
</bean>
<!-- The <description> element below caused parsing exception prior to resolution of SPR-8563 -->
<bean id="mapWithDescriptionInEntry" class="org.springframework.beans.factory.xml.HasMap">
<property name="map">
<map>
<entry key="e1">
<description>A map entry with a description</description>
<value>v1</value>
</entry>
</map>
</property>
</bean>
<bean id="fooKey" class="java.lang.String">
<constructor-arg value="foo"/>
</bean>