catch ConversionException and ConvertedNotFoundException in BeanWrapper's convertIfNecessary as well, in order to support constructor resolution (SPR-6563)

This commit is contained in:
Juergen Hoeller
2009-12-15 12:53:36 +00:00
parent 2153b2fbd5
commit 1c33206042
4 changed files with 58 additions and 14 deletions

View File

@@ -13,6 +13,14 @@
<bean id="testClient" class="org.springframework.context.conversionservice.TestClient">
<property name="bool" value="true"/>
<property name="stringList">
<list>
<value>#{'test-' + strValue + '-end'}</value>
<value>#{'test-' + strValue}</value>
<value>#{'test-' + numValue+ '-end'}</value>
<value>#{'test-' + numValue}</value>
</list>
</property>
<property name="resourceArray">
<value>classpath:test.xml</value>
</property>
@@ -36,7 +44,15 @@
<bean class="org.springframework.context.conversionservice.Bar">
<constructor-arg value ="value2" />
</bean>
<bean id="numValue" class="java.lang.Integer">
<constructor-arg value="111"/>
</bean>
<bean id="strValue" class="java.lang.String">
<constructor-arg value="222"/>
</bean>
<context:annotation-config />
</beans>