prototype beans receive independent collection/array even when based on single value (SPR-5512)

This commit is contained in:
Juergen Hoeller
2009-02-21 18:04:08 +00:00
parent 2de9e2a38d
commit dc1edccc56
4 changed files with 63 additions and 7 deletions

View File

@@ -67,7 +67,7 @@
<value>Rob Harrop</value>
</util:set>
<bean id="nestedCollectionsBean" class="test.beans.TestBean">
<bean id="nestedCollectionsBean" class="test.beans.TestBean" scope="prototype">
<property name="someList">
<util:list>
<value>foo</value>
@@ -89,6 +89,12 @@
</property>
</bean>
<bean id="nestedShortcutCollections" class="test.beans.TestBean" scope="prototype">
<property name="stringArray" value="fooStr"/>
<property name="someList" value="foo"/>
<property name="someSet" value="bar"/>
</bean>
<bean id="nestedCustomTagBean" class="test.beans.TestBean" scope="prototype">
<property name="someList">
<list>